Commit Graph

38 Commits (cb95b2f62952fdde37a86f7ac03c10c74f4e4920)

Author SHA1 Message Date
Nathaniel Cook 01aa9073b6 check for NaNs and do not return them 2016-06-03 10:51:46 -06:00
Nathaniel Cook 9314ae8e80 fix overflow in window iterator and holt winters roundTime 2016-05-27 11:07:50 +01:00
Nathaniel Cook 6ed0d94343 Add Holt-Winters forecasting method. 2016-05-19 09:24:56 -06:00
Daniel Morsing 66fc270d1e Move aggregate funcs into tsdb
Pure move, No functional changes.
2015-09-11 14:27:47 +00:00
Cory LaNou fa4415b3a4 refactor processing top/bottom results. clarify some comments 2015-09-04 13:30:43 -05:00
Cory LaNou 9ab3d89c06 bucketTime* -> tMin* 2015-09-04 13:30:42 -05:00
Cory LaNou 3ca93594c3 BucketTime -> TMin 2015-09-04 13:30:42 -05:00
Cory LaNou 3db5a85139 all tests passing for top 2015-09-04 13:30:41 -05:00
Cory LaNou 046282249a wip remapping top output 2015-09-04 13:30:40 -05:00
Cory LaNou d060f3aba9 move all aggregate validations to the parser validation from map/reduce functions 2015-09-04 13:30:40 -05:00
Cory LaNou c5358dcd2a always sort results for ReduceTop. Skip test until we verify expected behavior 2015-09-04 13:30:40 -05:00
Cory LaNou b45872c1ac first pass at ReduceTop 2015-09-04 13:30:40 -05:00
Cory LaNou 6b005af731 change ReducePercentile signature 2015-09-04 13:30:40 -05:00
Cory LaNou e6de6d0887 change percentile to check errors in parsing, not in mapping 2015-09-04 13:30:40 -05:00
Cory LaNou f8d486f99c maptop bool test 2015-09-04 13:30:40 -05:00
Cory LaNou 52cb46fc56 mixed maptop test with strings 2015-09-04 13:30:40 -05:00
Cory LaNou dd278a10f6 add test for mixed numerics and fix infer 2015-09-04 13:30:39 -05:00
Cory LaNou 193fd501db first pass at MapTop. more testing to come 2015-09-04 13:30:39 -05:00
Cory LaNou 72fd115dc2 exposing tags on cursors, top/bottom are valid funcs now 2015-09-04 13:30:39 -05:00
Daniel Morsing c4092d7fc3 Revert "move aggregate functions" 2015-09-02 10:47:58 -07:00
Daniel Morsing 65340a023b Move aggregate funcs into tsdb
Pure move, No functional changes.
2015-09-01 14:25:59 -07:00
Philip O'Toole 42b4a0b8bf string return is totally unused 2015-07-22 02:55:13 -07:00
Philip O'Toole 45dcf9960c Optimize the very inner loop of cursor iteration
This change moves tracking of next timestamp and values to simple
slices, as performance measurement showed that Peek() on TagSet cursors
was a huge performance drain. There is much more that can be done here,
but with this in place query performance has been restored to 0.9.1
levels.

This change also uses -1 to indicate that no value is available for a
given timestamp.
2015-07-22 02:55:09 -07:00
Philip O'Toole 7ff2fdfcb4 Initialize influxql test data 2015-06-09 22:38:11 -07:00
Ben Johnson 8c8a55a737 Removed 'failed' from test suite. 2015-05-30 08:59:27 -06:00
Ben Johnson 6677ea074f more services, more test fixes, getting closer... 2015-05-29 14:59:57 -06:00
Cory LaNou ca11be338f add MapCountDistinct/ReduceCountDistinct function tests 2015-05-19 12:29:39 -06:00
Levi Cook e8b0484859 MapDistinct return nil on empty input and TestReduceDistinct 2015-05-19 09:16:20 -06:00
Levi Cook 8d4c36c9f6 MapDistinct and distinctValues sort tests 2015-05-19 09:16:20 -06:00
Jason Wilder 98521b273e Add non_negative_derivative
Fixes #1477
2015-05-13 15:57:48 -06:00
Jason Wilder 7fd9a0acd3 Add validation for derivative arguments
Derivative must be of the form derviative(field, duration) or
derivative(agg(field), duration).
2015-05-13 15:35:42 -06:00
Jason Wilder 9c0584325f Add support for parsing derivative w/ nested functions 2015-05-13 15:35:42 -06:00
ben hockey 9a3c28748c change timestamp to time 2015-05-11 12:28:47 -05:00
ben hockey e20444fe45 add some tests for getSortedRange and improve efficiency of partitioning 2015-05-04 16:59:39 -05:00
ben hockey ce54004961 normalize Call.Name to be lowercase 2015-05-01 12:05:55 -05:00
Jason Wilder 8174f6fb05 Fix panic: interface conversion: interface is nil, not []interface {}
Fixes #2374
2015-04-23 11:18:19 -06:00
Jason Wilder 155adb7d24 Fix panic: runtime error: index out of range
Fixes #2374
2015-04-23 11:18:19 -06:00
Jason Wilder d0cc98356b Fix error calling MarshalJSON for type *influxdb.Result: json: unsupported value: NaN
If the MapMean did not have any values in the iterator, it would return
and empty meanMapOutput().  ReduceMean would in turn divider the results
by an unitialized float64 producing a NaN.  NaN is not serializable to JSON
by default.
2015-04-23 11:18:19 -06:00