Commit Graph

260 Commits (62434fb8785d1b3ef502f8defc2f74fba977a238)

Author SHA1 Message Date
David Norton 03694fd6c0 influxql: add CREATE USER statement 2015-01-03 02:06:47 -05:00
David Norton 4739cc8c1d remove RETENTION POLICY from CREATE DATABASE 2015-01-03 02:06:47 -05:00
David Norton 4ede864d13 influxql: add CREATE DATABASE 2015-01-03 02:06:47 -05:00
David Norton b2a2b73bd9 influxql: add tokens for user & DB admin 2015-01-03 02:06:47 -05:00
Philip O'Toole f37f0b80fa Add unit test for change made by PR 1273 2014-12-31 15:50:10 -08:00
Philip O'Toole ba0745e244 Fix comment for filterExprBySource 2014-12-31 14:35:30 -08:00
Philip O'Toole a45a08cccf Fix unit test so filterExprBySource fix is tested
The change introduced by:

    https://github.com/influxdb/influxdb/pull/1269

was not actually being tested.
2014-12-31 11:41:54 -08:00
Ben Johnson 77322731fa Merge pull request #1273 from blmarket/change-default-assoc
Change influxql default associativity from right to left.
2014-12-30 11:54:22 -07:00
Heon Jeong a59be31449 Change influxql default associativity from right to left.
Closes #1266

modified one testcase as it was depending on right
associativity.
2014-12-30 10:20:12 +09:00
Heon Jeong 5736cbe2fc Fix not to reuse unfiltered expr for filterExprBySource
`return expr` in the last line of `filterExprBySource` can
return unfiltered results, so fixing it by reconstruction
using filtered elements.

also added a test which can cause this problem.
2014-12-30 09:57:45 +09:00
Ben Johnson 688080af3d Merge pull request #1257 from influxdb/filter-tags
Add tag filtering
2014-12-22 09:01:05 -07:00
Ben Johnson fdd65116b4 Add Rewriter. 2014-12-21 15:18:55 -07: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 a034dab697 Fix date parsing comment. 2014-12-21 12:45:52 -07:00
Ben Johnson bd79d70f50 Add absolute time support.
This commit adds the ability to specify time by duration since epoch.

Example:

	SELECT * FROM cpu WHERE time > 1388534400s
2014-12-21 11:07:14 -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 d92d0d4737 Fix NEQ: Change != to <> 2014-12-21 10:43:03 -07:00
Ben Johnson 4d0cf4e47b Fix syntax error. 2014-12-21 10:40:39 -07:00
Ben Johnson f5a3e9bf15 Code review fixes. 2014-12-21 10:05:15 -07:00
Ben Johnson 252a4cfba8 code review fix. 2014-12-19 21:45:40 -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 925abdcb67 Merge pull request #1232 from influxdb/planner
Add time range extraction and interval grouping support to execution engine.
2014-12-16 15:08:48 -07:00
David Norton 9d2aba9d7f influxql: move ORDER BY parsing to its own func 2014-12-16 12:32:08 -05:00
Ben Johnson 04608f74c0 Add time range crossover test. 2014-12-16 08:57:27 -07:00
Ben Johnson 9bcc48f8f9 Code review fixes. 2014-12-16 08:50:30 -07:00
David Norton 3deb2bb132 go fmt 2014-12-16 09:06:51 -05:00
David Norton abce33981a influxql: capitalize LIMIT in error message 2014-12-16 09:06:51 -05:00
David Norton 4ce9b2bd74 influxql: add LIST MEASUREMENTS, TAGS, & FIELDS 2014-12-16 09:06:51 -05:00
David Norton ddc1352073 influxql: only accept LIMIT values > 0 2014-12-16 09:06:51 -05:00
David Norton 6f3ba3efdb influxql: change ORDER BY to accept a field list
Change ORDER BY to accept a field list and change LIST SERIES
statement to allow ORDER BY.
2014-12-16 09:06:51 -05:00
David Norton 0f3ea136be influxql: make LIST SERIES support WHERE & LIMIT 2014-12-16 09:06:51 -05:00
David Norton 74ade8cffb Add LIST related tokens to scanner 2014-12-16 09:06:50 -05: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 f469097e8b Add ability to fold without now(). 2014-12-11 09:58:33 -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
Ben Johnson d34bc1f57f Add AST string encoding, substatement extraction. 2014-12-06 11:17:58 -07:00
Ben Johnson 0b07cec7f4 Merge branch 'master' of https://github.com/influxdb/influxdb into planner 2014-11-30 15:52:20 -07:00
Ben Johnson a41e539458 Initial query planner. 2014-11-30 15:52:00 -07:00
David Norton 26ecd06ef5 Change Wild to Wildcard and move test 2014-11-25 18:23:10 -05:00
David Norton f8073bf287 Make influxql parse SELECT * 2014-11-25 17:43:22 -05:00
David Norton af86d7cb1c Add TODO for parsing SELECT * 2014-11-25 17:07:17 -05:00
Ben Johnson dc67d2f0aa Add microsecond support to influxql.ParseDuration. 2014-11-24 23:43:23 -07:00
Ben Johnson 4992a006e4 Add ParenExpr. 2014-11-24 23:12:32 -07:00
Ben Johnson 143f8a0fd5 Add CREATE CONTINUOUS QUERY parsing. 2014-11-24 21:49:09 -07:00
Ben Johnson 7288a778c3 Add influxql.Call. 2014-11-24 20:43:23 -07:00
Ben Johnson 00f969af1f Add garbage influxql test. 2014-11-24 18:23:33 -07:00
Ben Johnson c2c255fcda Add test for influxql case insensitivity. 2014-11-24 18:14:03 -07:00
Ben Johnson cfc20e0447 Change DROP CONTINUOUS QUERY to use a query name. 2014-11-24 17:58:21 -07:00
Ben Johnson 91f16db3af Add LIST/DROP SERIES and LIST/DROP CONTINUOUS QUERIES. 2014-11-22 16:33:21 -07:00
Ben Johnson 6ef8d4634a Add influxql parser. 2014-11-21 21:12:48 -07:00
Ben Johnson 1ca44658e5 Add semicolon, INSERT, INTO to Scanner. 2014-11-20 08:02:47 -07:00
Ben Johnson bac1b48cf7 Fix Scanner.Scan() comment. 2014-11-19 21:11:56 -07:00
Ben Johnson f94b588013 Fix EQ token scanning. 2014-11-19 17:16:38 -07:00
Ben Johnson 3d612fafbf Add InfluxQL scanner.
This commit adds a pure Go implementation of the InfluxQL scanner. It includes support for:

- Identifiers
- Numbers
- Strings
- Durations
- Booleans
- Numeric and logical operators
- InfluxQL keywords
2014-11-19 16:47:46 -07:00
Ben Johnson 37ee2ac23c Remove engine, parser, and Makefile. 2014-11-17 15:54:35 -07:00
Ben Johnson 0e9a74294e Add InfluxQL AST and tokens. 2014-11-15 12:04:30 -07:00