Commit Graph

260 Commits (62434fb8785d1b3ef502f8defc2f74fba977a238)

Author SHA1 Message Date
Philip O'Toole 1b700264a7 Also include NEQ in filters
This fixes != for field value comparisons.
2015-03-27 23:07:57 -07:00
Philip O'Toole 272f7f760e Add unit tests, pass now. 2015-03-27 17:04:46 -07:00
Philip O'Toole e07aeaa030 Unit test leading underscore as IDENTs 2015-03-26 13:11:11 -07:00
Philip O'Toole 6627257f44 Allow leading underscores for IDENTs 2015-03-26 13:11:06 -07:00
Todd Persen 94a8019fc7 Wire up DROP CONTINUOUS QUERY 2015-03-25 11:58:33 -07:00
Todd Persen edf42569a0 Merge pull request #2049 from influxdb/fix-cq-example
Fix CQ example on InfluxQL spec
2015-03-25 11:50:48 -07:00
Cory LaNou 84a9b8a3fa the naming of the function is wrong, need future refactor, this logic is valid 2015-03-24 20:14:05 -06:00
Cory LaNou c21ca156e9 this logic should never happen 2015-03-24 20:14:05 -06:00
Cory Lanou 7be574534c Fixing intervals for group by. Fixing bad PR 2015-03-24 20:13:05 -06:00
Philip O'Toole 1c440f8542 Implement "SHOW DIAGNOSTICS" 2015-03-23 23:45:57 -07:00
Paul Dix 6bba6043d7 Fix CQ example on InfluxQL spec 2015-03-22 11:40:33 -04:00
Cory LaNou dd6bb91463 fix test 2015-03-20 16:52:32 -06:00
Cory LaNou e2f33e354f clarify error message 2015-03-20 16:52:32 -06:00
Cory LaNou 3c8e830aa3 fixing tests 2015-03-20 16:51:41 -06:00
Cory LaNou dc0d8a35dc wip 2015-03-20 16:51:41 -06:00
Philip O'Toole fe44f63495 Fix parser unit test, statement is raw 2015-03-19 16:36:24 -07:00
Philip O'Toole dc297e8012 Correctly use IsRawQuery 2015-03-19 16:32:25 -07:00
Philip O'Toole 59f25910c6 IsRawQuery should be set via Walk() 2015-03-19 16:26:16 -07:00
Philip O'Toole b045a0008e Remove redundant Aggregated() on select statement 2015-03-19 15:22:43 -07:00
Philip O'Toole 3001448f16 Merge branch 'master' into limit-group-by
Conflicts:
	CHANGELOG.md
2015-03-19 15:17:50 -07:00
Philip O'Toole cbd43bd9b2 IsRaw now works without time present 2015-03-19 15:12:46 -07:00
Paul Dix 6d85d81a0b Make select statement clone copy IsRawQuery 2015-03-19 17:07:56 -04:00
Cory LaNou da171cfe32 make vet happy 2015-03-19 15:05:23 -06:00
Paul Dix 3496105033 Remove resultTimes as it's not used 2015-03-19 16:48:47 -04:00
Cory LaNou c13bdd5e86 refactor, bug fix, move tests to integration 2015-03-19 14:33:47 -06:00
Cory LaNou d5f04d82c6 remove debug code 2015-03-19 13:43:04 -06:00
Cory LaNou a6171b3382 refactor of limit/offset 2015-03-19 13:31:46 -06:00
Paul Dix 56281fbfd5 WIP: add IsRawQuery to select and fix LIMIT and OFFSET on GROUP BY time 2015-03-19 11:41:18 -04:00
Jonathan Nutzmann 46f5521070 oops - forgot to remove temp import 2015-03-19 10:31:27 -05:00
Jonathan Nutzmann 105d0aa503 fixing failed integration tests - change how number of points calculated and the expected result of the server 2015-03-19 10:28:47 -05:00
Cory LaNou 5f29565ce2 still allow crazy limits if total points is less than max group limit 2015-03-18 18:44:31 -06:00
Cory LaNou e78e5f3e19 Limit group by to MaxGroupByPoints (currently 100,000) 2015-03-18 18:44:30 -06:00
David Norton 3f8ca0c923 influxql: remove RegexLiteral from Source types 2015-03-16 19:45:39 -04:00
David Norton 62ae32b0ce wire up regex in FROM clause 2015-03-16 19:40:59 -04:00
David Norton fd005a5f15 influxql: allow regex in FROM clause 2015-03-16 19:40:21 -04:00
Philip O'Toole e08066495a Add "SHOW STATS" command 2015-03-15 14:31:16 -07:00
Cory LaNou 3c3765dbb1 typo in comment 2015-03-13 16:52:49 -06:00
Cory LaNou 932b6ddc81 Sort wildcard expresion field names for consistent output 2015-03-13 16:51:18 -06:00
Cory LaNou 08b15d9370 zeros are ok after all 2015-03-12 18:59:38 -06:00
Cory LaNou eda74a25f1 allow offset 0 2015-03-12 18:20:58 -06:00
Paul Dix 5ca9bb5f85 Update comment for clarity 2015-03-12 11:39:57 -07:00
Paul Dix 63111a374c Fix issue with time buckets and improve performance
When the start time fell in the middle of a group by bucket, the times for all buckets would be off by the amount of that stat time. This fixes it so group by windows are always on the bucket. However, if the user specifies a start time in the middle of a bucket, the very first bucket will only have whatever data in it that is past the start time (so it'll be a partial)

Also fixed a performance bug where if someone issued a query like: `SELECT mean(value) FROM foo GROUP BY time(10s) LIMIT 3`. Previously, the engine would create emtpy values for every 10s window since 1970, then limit it afterwards. Now, it'll just create value holders for the 3 buckets we need.
2015-03-11 19:33:55 -07:00
Paul Dix 4b943e9f45 Fix fill to work if they clone the select statement. 2015-03-11 19:29:18 -07:00
Paul Dix 00888562b9 Fix typo in comment 2015-03-11 18:20:20 -07:00
Paul Dix 3d91acaa26 Update InfluxQL with fill 2015-03-11 18:12:42 -07:00
Paul Dix 06e8c1b3e8 Add fill to select statements.
Fixes #1913
Add fill(none), fill(<num>), and fill(previous) options
2015-03-11 18:05:31 -07:00
Cory LaNou de1defc528 add SHOW SERVERS to query language 2015-03-10 13:46:05 -06:00
Paul Dix 1a545a1cc0 Update Slimit and Soffset to SLimit and SOffset 2015-03-09 20:09:47 -07:00
Paul Dix a12f028de4 Wire up limit and offset per series.
Fixes #1709 and fixes #1103
2015-03-09 19:17:03 -07:00
Paul Dix 8d2abc5c86 Add Slimit and Soffset. Update tests and behavior to use those. 2015-03-09 18:46:05 -07:00