Commit Graph

199 Commits (98aee8c362cf4b2f934604a5d6085ec245b815f6)

Author SHA1 Message Date
Philip O'Toole a2e4556563 Allow 'INF' to indicate infinite retention 2015-03-05 15:23:54 -08:00
Philip O'Toole 51bf552ca9 Fix typo in comment 2015-03-05 14:45:47 -08:00
David Norton 09e1710dc9 fix #1799: update INFLUXQL.md for regex changes 2015-03-03 09:32:15 -05:00
David Norton 9d6d36f2e9 fix #1799: change regex delim to '/' & RHS only 2015-03-03 09:32:15 -05:00
David Norton 08796bd6af fix #1799: make scanner recognize regex
Change the regex delimiter from single quotes to back ticks (`) and make
the scanner recognize regex tokens.

Single quotes are used for string literals. Using a unique delimiter for
regular expression literals allows the scanner to recognize regular
expression tokens, which is inline with the way the rest of the
scanner / parser work.
2015-03-03 09:32:15 -05:00
Joseph Rothrock bcad98c902 malformed identifiers get through
Issue: 1768

We weren't checking return codes from scanString.
Added text descriptions for BADSTRING and BADESCAPE tokens.
2015-02-27 13:33:36 -08:00
Paul Dix 889f0a323f Fix problem with merging series that have unequal number of points in group by interval 2015-02-27 01:02:34 -05:00
Joseph Rothrock 661482937f Support keys wrapped in dbl quotes
Issue: 1729

Trim off any leading or lagging dbl quotes.
2015-02-26 12:40:30 -08:00
Philip O'Toole c48297c886 Merge pull request #1733 from mre/patch-1
typo in word "dimension"
2015-02-26 00:58:58 -08:00
Cory LaNou c34e28ba10 adding more test coverage for parsting create continuous query statements 2015-02-25 13:01:32 -07:00
Cory LaNou 60a08466c8 add drop measurement test for parser 2015-02-25 12:42:23 -07:00
Cory LaNou 151015b4b8 parsing DROP MEASUREMENT 2015-02-25 12:42:23 -07:00
Cory LaNou 2aa155c428 wip 2015-02-25 12:42:23 -07:00
Matthias Endler 30fa2b7c3a typo in word "dimension" 2015-02-25 09:42:45 +01:00
Philip O'Toole 3867a1933c Parse Series IDs are 32-bit unsigned integers 2015-02-24 12:43:50 -08:00
Paul Dix 036859c191 Fix limit and offset, add more tests.
Also updated the Clone and Substatement methods to copy the offset.
2015-02-24 01:42:11 -05:00
Paul Dix a8a0b9f24e Fix raw data query where some values are null
I also removed the engine test for the raw planner. It's getting tested elsewhere and it would have been too difficult to make it work. Besides, that's getting replaced soon anyway.
2015-02-24 00:36:07 -05:00
Paul Dix b69597f376 Fix queries that return raw data without aggregates. 2015-02-24 00:36:07 -05:00
Philip O'Toole 4d896fa96b Correct comment in wildcard unit test 2015-02-23 19:09:55 -08:00
Philip O'Toole 41ad49f1c1 Add wildcard detection method to SelectStatement 2015-02-23 19:09:55 -08:00
Philip O'Toole 5f71aed8bd Fix previously failing GROUP BY * unit tests
GROUP BY * functionality is now in place.
2015-02-23 19:09:55 -08:00
Philip O'Toole 84de4ad56c Add wildcard rewrite functionality for SELECT
This code, when given a SELECT statement, returns another SELECT
statement such that all "query" and GROUP BY wildcards have been
replaced with all Measurement fields and tag keys respectively.
2015-02-23 19:09:55 -08:00
Philip O'Toole bf3aa528b0 Allow parsing of * for GROUP BY 2015-02-23 19:07:01 -08:00
Cory LaNou 7d74ccac6a addressing nit 2015-02-21 17:21:27 -07:00
Cory LaNou 27d7f45729 support drop series without from but with where 2015-02-21 17:05:08 -07:00
Cory LaNou 918c5c8ce9 one more err test condition for drop series 2015-02-21 17:05:08 -07:00
Cory LaNou fd9c19ad9c wire up drop series parsing 2015-02-21 17:05:08 -07:00
David Norton 9bff9cdeee issue #1431: wire up regex queries 2015-02-21 15:38:35 -05:00
David Norton 12bed3e74f issue #1430: add where regex to influxql 2015-02-21 15:37:52 -05:00
Paul Dix 8fee14fbf8 Fixes based on PR feedback.
* Pull out magic numbers for running CQs in the broker
* Typo fixes in comments
* Update the process_continuous_queries endpoint to not have gzip
* Remove previous implementation of MeasurementNames in favor of new simpler one
2015-02-17 21:02:53 -05:00
Paul Dix 8d9bcdbc97 Finish wiring up basic version of CQs 2015-02-17 21:02:52 -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
Paul Dix b0d4b6da55 WIP: fix cq query times 2015-02-17 21:01:21 -05:00
Paul Dix f2d132b361 Implement continuous queries with group by intervals
* Update defaults on Broker for when to trigger CQ runs
* Add config settings for how often to calculate and recalculate CQ results
* Update Server to have CQ settings
* Update AST to fold removed time literals when setting time range
* Add periodic CQ running functionality to server
2015-02-17 21:00:24 -05:00
Paul Dix 34e037a9d8 Add SetTimeRange to SelectStatement for use by continuous queries 2015-02-17 21:00:24 -05:00
Paul Dix 5f14d5faf5 WIP: start implementation of continuous queries
* Update SelectStatement to have GroupByInterval
* Update parser to verify that CQs have GroupByInterval if Aggregated
* Implement CreateContinousQuery on Server
* Add ContinuousQueries to database
2015-02-17 21:00:24 -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
Philip O'Toole 276c5ded5a int maps to influxql.Number 2015-02-13 16:28:12 -08: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
Philip O'Toole bf9bfd6106 Error if field's type has changed 2015-02-12 16:06:37 -08: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 ecb145d15d fix test 2015-02-11 16:06:49 -07:00
Cory LaNou 2e93fcef53 fixing test comment 2015-02-11 16:06:09 -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