Philip O'Toole
2ac0357406
Support dropping non-Raft nodes
2015-10-04 00:19:52 -07:00
Philip O'Toole
d74e0690c7
Revert "Merge pull request #4233 from influxdb/drop-server"
...
This reverts commit 0bdb36f6dc
, reversing
changes made to 3085fbc138
.
2015-10-02 08:39:57 -07:00
Cory LaNou
dc317ce85f
optional end requirments should also allow SEMICOLON
2015-10-01 15:39:15 -05:00
Cory LaNou
93507c0b51
add force for drop server, misc fixes, more wip
2015-10-01 15:39:15 -05:00
Cory LaNou
3c74c13908
add drop server statement
2015-10-01 15:39:14 -05:00
Philip O'Toole
8177b80929
Update, and ease maintainabilty of SHOW errors
...
Fixes issue #4164 .
2015-09-24 13:01:31 -07:00
Philip O'Toole
a71a5ffd36
Support module-selection for SHOW DIAGNOSTICS
2015-09-22 21:56:46 -07:00
Philip O'Toole
35d09cedfd
Support SHOW STATS for specific module
2015-09-22 16:36:13 -07:00
David Norton
e176d2c0dd
make SHOW TAG KEYS support (S)LIMIT & (S)OFFSET
2015-09-21 13:05:53 -04:00
Cory LaNou
59ef75a183
Allow wildcards without abandon! Fixes #3978
2015-09-09 15:27:15 -05:00
Jason Wilder
d466533f20
Return a parse error for order by anything other than time
...
Order by time asc and desc are the only supported order by options
currently. Tags, fields, or multiple order by fields will return
a parse error.
2015-09-03 22:31:58 -06:00
Jason Wilder
04a20566c1
Allow order by desc in parser
2015-09-03 22:28:35 -06:00
Ben Johnson
bbc5539517
add SHOW SHARDS statement
...
This commit adds the ability to list all shards in the cluster
and return their id, start time, end time, expiry time, and
owner ids. Shards are grouped by database.
Fixes #3562
2015-09-03 15:46:52 -06:00
David Norton
6e6b5c4e70
remove debugging statements
2015-09-03 07:12:15 -04:00
David Norton
dc968eae59
fix #255 : revert Measurement parent
2015-09-03 07:12:15 -04:00
David Norton
816c5f5368
fix #2555 : don't normalize target names
2015-09-03 07:12:15 -04:00
David Norton
99a22c174b
fix #2555 : add backreference in CQs
...
Add new query syntax to allow the following in CQs:
INTO "1hPolicy".:MEASUREMENT
2015-09-03 07:12:15 -04:00
Philip O'Toole
78170bd798
Parse multiple tokens at once (NOT EXISTS)
2015-08-29 09:56:15 -07:00
Philip O'Toole
1228c985ea
Parser support for CREATE DATABASE IF NOT EXISTS
2015-08-28 19:04:50 -07:00
Daniel Morsing
fc4246d7f5
be more strict about identifier printing
...
When stringifying a query, we would print the identifier bare most
of the time. This caused issues when stringifying an identifier
that contained elements of syntax. For example, querying for the
value "in-bytes" would fail because the mapper would serialize it to
in-bytes and would parse it as an expression. Same problem occured
when using keywords as identifier names, such as select or in.
Fixes #3547
2015-08-05 17:40:42 +01:00
Daniel Morsing
6797270403
check if fields are valid during parse.
...
Binary expressions that yield a boolean are invalid and we can catch
these at parse time.
Fixes #3525
2015-08-04 16:02:35 +01:00
gunnaraasen
eca76ed7a3
Parser fix, only allow ORDER BY clause with time ASC
2015-07-21 12:07:56 -07:00
Philip O'Toole
f549910a18
Merge pull request #3279 from LK4D4/fix_style_else
...
Fix style issues with else
2015-07-17 11:53:42 -07:00
gunnaraasen
9ba37325f6
Fixes authorization.
...
Adds GRANT and REVOKE statements for admin privilege. Adds authorization to the query endpoint.
2015-07-17 11:33:06 -07:00
Alexander Morozov
675eacbf2c
Fix style issues with else
...
In go it's better to just continue flow without "else", if it is return in
"if" statement.
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-07-17 11:10:23 -07:00
Robert Nubel
930a1aa523
Require a regex after a regex operator when parsing.
...
Previously, parseRegex could return an empty RegexLiteral
and the expression parser would put that into the right-hand
side of the expression, causing a nil-pointer panic when
the query was later executed. This change adds a check at
the parsing level and returns an error message if a regex
operator (e.g. =~) is not followed by an actual regex.
2015-07-17 11:02:45 -07:00
gunnaraasen
ee8ba11c4f
Add ON token to SHOW RETENTION POLICIES parser with tests
2015-07-16 13:45:50 -07:00
David Norton
debc3cc11c
fix #3102 : add authentication cache
2015-06-30 18:29:11 -04:00
Joseph Crail
5fccee3d16
Fix spelling errors in comments and strings.
2015-06-28 02:54:34 -04:00
Dejan Golja
f133ceb350
Added support for SHOW GRANTS FOR USER syntax
2015-06-17 01:00:26 +10:00
Philip O'Toole
cdf7188259
Only ORDER BY ASC is valid for now
...
Fix issue #2731
2015-06-11 00:51:44 -07:00
Paul Dix
4a1ce77090
Wire up DROP SERIES.
...
* Pulled over updates to ast and parser from master
* Updated store and shard to be able to drop series
* Pulled updates to database.go from master into tsdb/meta.go
2015-06-02 11:20:20 -04:00
Ben Johnson
75ab63b538
Refactor meta statement execution to meta.StatementExecutor.
2015-05-29 14:54:04 -06:00
Cory LaNou
fc7d63ce61
validate methods can be private
2015-05-19 09:16:21 -06:00
Cory LaNou
b9de38e7d4
support SELECT DISTINCT foo and SELECT distinct(foo)
2015-05-19 09:16:20 -06:00
Cory LaNou
06d40a2582
SELECT DISTINCT field -> SELECT distinct(field)
2015-05-19 09:16:20 -06:00
Cory LaNou
b6b916edbc
add distinct keyword
2015-05-19 09:16:19 -06:00
Cory LaNou
bfdf05033d
refactor validating select statement
2015-05-12 08:42:39 -06:00
Cory LaNou
93760c8679
update comment and changelog for count -> aggregate
2015-05-11 18:00:59 -06:00
Cory LaNou
cebdfea737
any aggregate function that has a group by time without a where time clause should fail
2015-05-11 17:48:37 -06:00
Cory LaNou
0155f8bb6d
hasWhereTime -> hasTimeDimensions
2015-05-11 17:48:21 -06:00
Cory LaNou
832ca01cd3
learn to spell claus
2015-05-11 17:48:21 -06:00
Cory LaNou
892a6e831b
error out for invalid count group select without where time
2015-05-11 17:48:21 -06:00
ben hockey
ce54004961
normalize Call.Name to be lowercase
2015-05-01 12:05:55 -05:00
David Norton
66b8cc02aa
fix #2268 : code review changes
2015-04-15 13:52:18 -04:00
David Norton
1e7b132f96
fix #2268 : make ugly code pretty
2015-04-15 13:25:49 -04:00
David Norton
3739433f0c
fix #2268 : fix expression parsing bug
...
Parsing:
WHERE time > now() - 2d AND time < now() + 10d
generated an expression tree that evaluated as:
... AND (time < now()) + 10d
instead of:
... AND time < (now() + 10d)
2015-04-15 12:37:19 -04:00
Todd Persen
ebd8ca7016
Merge pull request #2191 from influxdb/calls_case
...
Case-insensitive check for "fill"
2015-04-13 12:13:43 -07:00
Philip O'Toole
bf1a8aa1e4
Use uint64 for Series IDs
...
Fixes issue #1649
2015-04-10 16:11:34 -07:00
David Norton
a67e9a8a95
fix #2215 : allow keyword default to be unquoted
...
InfluxDB creates a default retention policy named "default". DEFAULT is
also a keyword in the language. This required double quoting "default"
in the ALTER RETENTION POLICY statement. This commit makes the parser
accept it unquoted for that one statement.
2015-04-09 16:37:20 -04:00
David Norton
25cea58635
refactor scanning & parsing of identifiers
2015-04-09 13:21:13 -04:00
Philip O'Toole
f5b769781b
Case-insensitive check for "fill"
2015-04-07 19:21:37 -07:00
Dejan Golja
e1b9982401
Add support for SET PASSWORD FOR user = 'PASSWORD'
...
Added support for the set password for user, so we can update user
password via the new server administration commands
2015-04-04 14:16:54 +11:00
Todd Persen
94a8019fc7
Wire up DROP CONTINUOUS QUERY
2015-03-25 11:58:33 -07:00
Philip O'Toole
1c440f8542
Implement "SHOW DIAGNOSTICS"
2015-03-23 23:45:57 -07: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
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
cbd43bd9b2
IsRaw now works without time present
2015-03-19 15:12:46 -07: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
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
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
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
8d2abc5c86
Add Slimit and Soffset. Update tests and behavior to use those.
2015-03-09 18:46:05 -07:00
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
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
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
Philip O'Toole
3867a1933c
Parse Series IDs are 32-bit unsigned integers
2015-02-24 12:43:50 -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
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
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
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
Mark Rushakoff
2e4b9d8b3b
Add missing valid statements for SHOW
...
And alphabetize the order.
2015-02-09 17:06:18 -08:00
David Norton
2b84113487
issue #1423 : wire up show field keys
2015-02-04 10:59:47 -05:00
David Norton
a8b86dc29b
golint cleanup
2015-02-01 13:47:48 -05:00
David Norton
d7814eb5f1
issue #1418 : wire up revoke privilege
2015-01-30 10:46:29 -05:00
David Norton
0cf681d19c
influxql: remove TagKeyIdent, add WITH KEY clause
2015-01-29 15:01:25 -05:00
David Norton
ae33bc99db
issue #1411 : wire up show tag keys
2015-01-28 21:33:19 -05:00
Paul Dix
3ad3abaf64
Merge pull request #1398 from influxdb/show-queries
...
Show queries
2015-01-28 10:44:08 -05:00
David Norton
2cf41d6ea9
influxql: fix WHERE TAG KEY parsing
2015-01-28 05:02:36 -05:00
David Norton
b50e4cc514
implement SHOW SERIES
2015-01-28 00:29:14 -05:00
Ben Johnson
d340ffcf3c
Expression expansion and reduction.
2015-01-27 20:26:31 -05:00
David Norton
780831bb17
change LIST to SHOW
2015-01-25 22:56:20 -05:00
David Norton
ab39d471a3
influxql: add OFFSET
2015-01-25 15:34:49 -05:00
Ben Johnson
9ccc3b73e0
Refactor ident parsing into Parser.parseIdent().
2015-01-19 16:12:33 -07:00
Ben Johnson
73bc8215bc
Remove combined string/ident scanning.
2015-01-19 16:01:24 -07:00