ch33hau
2235dcec6b
Added IF EXISTS for DROP DATABASE command, #4659
2015-11-07 10:57:49 +08:00
David Norton
a3d127f797
Revert "add RENAME DATABASE"
...
This reverts commit 7212bfce83
.
Conflicts:
influxql/parser.go
influxql/token.go
meta/internal/meta.pb.go
meta/internal/meta.proto
2015-10-20 09:01:34 -04:00
David Norton
20929c3db2
Revert "change syntax to ALTER DATABASE ... RENAME TO ..."
...
This reverts commit 668b5b9bfb
.
2015-10-20 08:43:45 -04:00
David Norton
34c9a053dd
Revert "improvements from code review"
...
This reverts commit 37964a032f
.
Conflicts:
meta/internal/meta.proto
2015-10-20 08:41:50 -04:00
David Norton
a1b0f53108
feat #3523 : parse WITH in SHOW MEASUREMENTS
2015-10-19 14:00:53 -04:00
Nathaniel Cook
8b31007aa7
Adds subscriber service for creating/dropping subscriptions to the
...
InfluxDB data stream.
2015-10-14 15:23:45 -06:00
linearb
37964a032f
improvements from code review
2015-10-09 13:57:02 -04:00
linearb
668b5b9bfb
change syntax to ALTER DATABASE ... RENAME TO ...
2015-10-09 13:56:23 -04:00
linearb
7212bfce83
add RENAME DATABASE
2015-10-09 13:55:38 -04:00
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