Commit Graph

44 Commits (f6442d05561337d968d50e2da14f6c85caab50e5)

Author SHA1 Message Date
David Norton 843ef41cc9 fix #2845: fix panic on aggregate functions 2015-06-09 18:29:54 -04:00
Paul Dix 072dacc1ab Update tx.go to work with tsdb 2015-05-29 14:59:57 -06:00
Cory LaNou 8d17c01b20 make select count(distinct(field)) work 2015-05-19 13:15:14 -06:00
Cory LaNou 28d53b644f first pass at count distinct 2015-05-19 12:29:39 -06:00
Cory LaNou 97aa735bf1 fix comment type 2015-05-19 09:16:20 -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
Levi Cook 41775a54eb map distinct and reduce cleanup 2015-05-19 09:16:20 -06:00
Levi Cook 514dd51bc6 refactor distinctValues sorting 2015-05-19 09:16:19 -06:00
Cory LaNou 81c9c9d681 use a concrete type for distinct results from mapper 2015-05-19 09:16:19 -06:00
Cory LaNou adc0e55a15 assing -> assign 2015-05-19 09:16:19 -06:00
Cory LaNou 031596a894 support bool sort for distinct results 2015-05-19 09:16:19 -06:00
Cory LaNou 5842321361 allow distinct to work on strings and be sorted 2015-05-19 09:16:19 -06:00
Cory LaNou 3d30720ec4 wip 2015-05-19 09:16:19 -06:00
Jason Wilder 34007a8be9 Make duration argument optional for derivatives
If it's not specified, it defaults to 1s for raw queries and to the
group by duration on group by queries.
2015-05-14 16:13:04 -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
Philip O'Toole 8ac6d80016 Numeric fields only when using numeric aggregates 2015-05-12 13:20:33 -07:00
Todd Persen 730e8cdfd4 Merge pull request #2405 from neonstalwart/time
change timestamp to time
2015-05-11 12:38:00 -07:00
ben hockey 9a3c28748c change timestamp to time 2015-05-11 12:28:47 -05:00
Can ZHANG 0aff0deaf2 Fix inconsistent data type 2015-05-09 08:51:56 +08:00
ben hockey e20444fe45 add some tests for getSortedRange and improve efficiency of partitioning 2015-05-04 16:59:39 -05:00
ben hockey c47f803699 add some documentation for getSortedRange 2015-05-04 11:09:49 -05:00
ben hockey 40af5fd1e3 implemented median aggregation 2015-05-04 11:09:48 -05:00
ben hockey ce54004961 normalize Call.Name to be lowercase 2015-05-01 12:05:55 -05:00
Paul Dix 8d91b75a5a Merge pull request #2354 from neonstalwart/stddev
make stddev work
2015-04-29 15:27:26 -07: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
ben hockey 762a77079a unmarshal stddev appropriately 2015-04-23 10:49:24 -05:00
ben hockey 23c38fb03c get stddev working
this includes avoiding overflow for large values
2015-04-23 10:49:24 -05:00
ben hockey 94030b2782 return the values from stddev mapper function 2015-04-23 10:49:24 -05:00
ben hockey 91db81f374 calculate mean without causing overflow 2015-04-22 11:40:16 -05:00
Philip O'Toole d21a9493c6 Remove debug commit 2015-04-16 11:50:47 -07:00
ben hockey d993a3f36b use nil as default return value for MapCount
fixes #2271
2015-04-15 11:55:07 -07:00
Philip O'Toole bf1a8aa1e4 Use uint64 for Series IDs
Fixes issue #1649
2015-04-10 16:11:34 -07:00
Paul Dix 113995032e WIP: Initial implementation of remote mapper for distributed queries. 2015-04-10 16:11:34 -07:00
Paul Dix 6c46a5c83b Add chunked responses and streaming of raw queries.
Refactored query engine to have different processing pipeline for raw queries. This enables queries that have a large offset to not keep everything in memory. It also makes it so that queries against raw data that have a limit will only p
rocess up to that limit and then bail out.

Raw data queries will only read up to a certain point in the map phase before yielding to the engine for further processing.

Fixes #2029 and fixes #2030
2015-04-02 15:22:27 -07:00
Paul Dix eca4af5514 Wire ip limits, fix server_test, remove warns 2015-03-07 16:30:42 -08:00
Paul Dix 0b98d6e1d2 WIP: wired up math processing on queries 2015-03-07 15:29:57 -08:00
Paul Dix df3c0099e1 WIP: wire up raw queries 2015-03-06 11:23:58 -08:00
Paul Dix 74e6f1f4db WIP: query language refactoring compiles. mores soon 2015-03-01 22:37:09 -08:00
Paul Dix 89b80dcd66 WIP: insane refactor of engine. Must come back later. 2015-02-23 18:07:01 -05:00