Commit Graph

100 Commits (1ac46b56b803036203a549e6a0bdf04c6d0fb076)

Author SHA1 Message Date
Paul Dix b69597f376 Fix queries that return raw data without aggregates. 2015-02-24 00:36:07 -05:00
Paul Dix 89b80dcd66 WIP: insane refactor of engine. Must come back later. 2015-02-23 18:07:01 -05:00
Paul Dix 6ed70ebbe3 WIP: fix for ordering of queries of raw values 2015-02-17 21:40:53 -05:00
Paul Dix fec6764b09 WIP: wire up continuous queries
* Fix run to work with CQ broker
* Fix CQ handler
* Fix SetTimeRange to use RFC3339Nano
* Fix the time range tests
* Fix the parser to parse for RFC3339Nano literals in addition to the other format
* Add logic for running CQs
* Remove duplicate WriteBufferSize default setting from config
2015-02-17 21:02:18 -05:00
Philip O'Toole dcdb4b77a1 Merge branch 'master' into support_all_value_types
Conflicts:
	database.go
	server.go
2015-02-16 09:21:10 -08:00
Paul Dix 4cd3494ddc Update interface on iterator.Next() to pass raw data along with key and value 2015-02-14 17:12:38 -05:00
Paul Dix b394fc203f WIP: updating the signature for iterators to pass around raw bytes for field values. 2015-02-13 14:04:45 -05:00
Cory LaNou aa7073bfb0 make the fields public to all for serializing them later 2015-02-12 15:12:14 -07:00
Cory LaNou 61d4cd6a5a shortcut calculating spread if not necessary 2015-02-12 10:40:24 -07:00
Cory LaNou 7c12afb9e1 fixing comment 2015-02-12 09:56:39 -07:00
Cory LaNou 3dd53ebe80 wire up spread function 2015-02-12 09:39:41 -07:00
Cory LaNou 59a953db97 Merge pull request #1575 from influxdb/batch-std-dev
emit in batches of 1000
2015-02-11 18:19:39 -07:00
Cory LaNou 79fe16fb6c add comment about why we batch 2015-02-11 16:03:01 -07:00
Cory LaNou 9e80b2173a Wire up first/last aggregate functions 2015-02-11 15:55:51 -07:00
Cory LaNou 4b18ddedec magic numbers are evil 2015-02-11 15:11:45 -07:00
Cory LaNou 5911b38e94 emit in batches of 1000 2015-02-11 15:00:39 -07:00
Cory LaNou 6b9ba8baef check to see if we found values to calculate 2015-02-11 12:37:14 -07:00
Cory LaNou d108af5a94 fix standard deviation calculation 2015-02-11 12:33:10 -07:00
Cory LaNou bf0c4599ba first pass at stddev. tests incoming 2015-02-11 11:21:55 -07:00
Cory LaNou 8421d59eb0 no more pointers, refactored min/max 2015-02-11 10:45:44 -07:00
Cory LaNou fe864792b5 map should do more work locally before passing up to reduce 2015-02-11 09:35:47 -07:00
Cory LaNou d0873a9b15 wire up max fix #1474 2015-02-10 16:14:22 -07:00
Cory LaNou eb845b1ecc return nil instead of 0 if there is nothing to reduce, additional zero test 2015-02-10 13:35:55 -07:00
Cory LaNou 4228635bf1 wire up min 2015-02-10 12:10:37 -07:00
Cory LaNou 62df7152c6 wildcards are now supported 2015-02-09 19:59:13 -07:00
Andrew Watkins 6b68f53b10 Fail faster on not-yet-implemented wildcard query
Signed-off-by: Will Faurot <will@influxdb.com>
2015-02-09 14:37:52 -07:00
Paul Dix c6e7a7f9ea Fix mapper to check if the iterator is EOF before calling the map function 2015-02-07 06:29:04 -05:00
Cory LaNou 887fbd2054 spelling is hard 2015-02-03 17:02:41 -07:00
Cory LaNou 55cc5cfa09 sending all time back as RFC3339Nano instead of UnixNano (int64) 2015-02-03 16:55:33 -07:00
Cory LaNou 37f62dbe71 We now store in nanoseconds and send back nanosecond values 2015-02-02 14:08:13 -07:00
David Norton a8b86dc29b golint cleanup 2015-02-01 13:47:48 -05:00
Ben Johnson 0a73416e4d Use the last ident segment for result names. 2015-01-28 03:57:38 -05:00
Paul Dix a4e32eb8e6 Fix raw data query test. 2015-01-27 20:26:32 -05:00
Paul Dix 7052fcdde9 WIP: add raw data points query, refactor mapper and iterator
Refactors the mapper to only take a single iterator. This will also make it so that we have many mappers (one per shard) that get properly reduced so order comes through correctly.
2015-01-27 20:26:32 -05:00
Paul Dix 7c4a79248d Add percentile aggregate function 2015-01-27 20:26:32 -05:00
Paul Dix 8148259bfc Add mean aggregate function 2015-01-27 20:26:32 -05:00
Ben Johnson a6746b3a21 Remove MultiIterator. 2015-01-27 20:26:32 -05:00
Ben Johnson 1eda0ffcb9 Refactoring query engine. 2015-01-27 20:26:31 -05:00
Ben Johnson d340ffcf3c Expression expansion and reduction. 2015-01-27 20:26:31 -05:00
Ben Johnson eced3a347c Add tag filtering.
This commit adds tag filtering via the `WHERE` clause.

Example:

	SELECT sum(value) FROM cpu GROUP BY time(1h), host WHERE region = 'us-west'
2014-12-21 13:22:04 -07:00
Ben Johnson 2564933639 Add date-only parsing.
This commit changes the Parser to check for date-only formatted strings instead of only
datetime formatted strings.
2014-12-21 10:59:36 -07:00
Ben Johnson f5a3e9bf15 Code review fixes. 2014-12-21 10:05:15 -07:00
Ben Johnson 6c6bb92a1b Add join support.
This commit adds the ability to join multiple measurements together and calculate aggregate
function expressions.
2014-12-19 21:36:52 -07:00
Ben Johnson 41bb5ccfdd Add group by support for tags.
This commit adds GROUP BY support for tags. Previously only the interval could be grouped by.
2014-12-18 08:44:21 -07:00
Ben Johnson 9bcc48f8f9 Code review fixes. 2014-12-16 08:50:30 -07:00
Ben Johnson 38263e0fac Add time range extraction and group by support to execution engine. 2014-12-15 08:34:32 -07:00
Ben Johnson e854b913e5 Add constant folding. 2014-12-10 23:32:45 -07:00
Ben Johnson b349394d3c NOTES 2014-12-10 07:44:52 -07:00
Ben Johnson d69691e6c5 Refactor planner. 2014-12-09 08:45:29 -07:00
Ben Johnson c77191b282 Rebuilding engine in influxql. 2014-12-07 22:08:39 -07:00