Cory LaNou
72fd115dc2
exposing tags on cursors, top/bottom are valid funcs now
2015-09-04 13:30:39 -05: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
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
1228c985ea
Parser support for CREATE DATABASE IF NOT EXISTS
2015-08-28 19:04:50 -07:00
Philip O'Toole
e032242d83
Refine implementation, sole time is invalid
2015-08-21 12:14:53 -07:00
Philip O'Toole
7a2f0a89bb
SELECT on time should return error
...
Fixes #3010 .
2015-08-21 12:14:39 -07:00
Daniel Morsing
59ee00ba0d
interpret number literals compared against time as nanoseconds from epoch
...
fixes #3719
2015-08-18 14:20:20 -07:00
Cory LaNou
1f7f977c5e
minor refactorings based on pr feedback
2015-08-14 15:05:26 -05:00
Cory LaNou
8ea3c47747
wip
2015-08-14 15:05:26 -05:00
Philip O'Toole
4770451837
Return error if queries mix aggregate and raw
...
Fixes issue #3198
2015-08-11 11:59:04 -07:00
Cory LaNou
b19a8f3968
Fix alias, maintain column sort order
2015-08-06 14:01:03 -05:00
Cory LaNou
101a580e02
do not allow wildcards with fields in select statements
2015-08-06 12:15:08 -05: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
David Norton
0b248e225c
Fix aggregate queries and time precision on where clauses.
2015-07-29 15:54:55 -04:00
Gunnar
96575e678a
Merge pull request #3427 from influxdb/ga-pw-log
...
Logging tweaks, sanitize passwords and note if authentication is enabled
2015-07-23 14:12:41 -07:00
Jason Wilder
c8e17cb4b2
Fix querying fields with spaces and quotes
2015-07-22 14:50:14 -06:00
gunnaraasen
acc277ec8e
Redact passwords from create user and set password statements
2015-07-21 17:53:21 -07:00
gunnaraasen
eca76ed7a3
Parser fix, only allow ORDER BY clause with time ASC
2015-07-21 12:07:56 -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
Philip O'Toole
74cb96646c
Refactor query engine for distributed query support
...
With this change, the query engine code gathers information about
shards and tagsets by working with individual shards, collating the
information, and returning that to the client. It does not assume that any
particular shard is local, and accesses all shards through abstracted
Mappers, of which there are two types -- a Mapper type for Raw queries
and a second type for Aggregate queries. There are corresponding
Executors for each type of Mapper, but both types of Executors share the
same interface.
2015-07-15 12:54:55 -07:00
Philip O'Toole
3967ec02d0
Add SLIMIT and SOFFSET to string version of AST
2015-07-15 09:43:24 -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
be5491ea77
Merge pull request #2918 from pradeepchhetri/master
...
Fixed some typos
2015-06-11 18:28:24 -07:00
Jason Wilder
ad02244863
Fix field type conflict error
...
Fixes #2908
2015-06-11 11:02:10 -06:00
Pradeep Chhetri
37750acef6
Fixed some Typos
2015-06-11 17:33:26 +05:45
Paul Dix
a2488ab8a5
Merge pull request #2804 from nvcook42/master
...
Time literals should use single quotes in String representation
2015-06-10 21:09:21 -07:00
David Norton
ef8372766f
hard code DataType values
2015-06-10 16:09:23 -04:00
David Norton
29777f2a8e
change influxql DataType from string to int
2015-06-10 16:02:26 -04:00
Cory LaNou
709a7ffd06
add where clause integration tests, add support for int64 comparisons
2015-06-09 15:45:00 -05:00
Nathaniel Cook
bf666b7f15
time literals should use single quotes
2015-06-06 14:57:37 -06:00
David Norton
0a8be47ca1
fix #2644 : make SHOW FIELD KEYS FROM /regex/ work
2015-05-27 10:26:32 -04:00
David Norton
8866c09e67
fix #2644 : make SHOW SERIES FROM /<regex>/ work
2015-05-27 10:26:04 -04:00
David Norton
cc8f5771fa
fix #2644 : make SHOW TAG VALUES FROM /regex/ work
2015-05-27 10:25:26 -04:00
David Norton
fe99177fb3
fix #2644 : make SHOW TAG KEYS FROM /<regex>/ work
2015-05-27 10:22:22 -04:00
Todd Persen
99cb11de49
Merge pull request #1997 from influxdb/fix-1997-include-tags-in-select-wildcard
...
Update SELECT * to return tag values
2015-05-25 23:35:14 -07:00
David Norton
e4670cb934
fix #2635 : Fix query against bool field in WHERE
2015-05-24 05:00:59 -04:00
Todd Persen
fec08fc858
Include tags when doing a `SELECT *`.
2015-05-22 13:38:28 -07:00
Todd Persen
7828af48fd
Make `DROP SERIES` take `Sources` instead of `Source`
2015-05-21 11:18:21 -07:00
Todd Persen
e7c40e5cae
Remove references to SeriesID in `DROP SERIES` handlers.
2015-05-20 14:27:33 -07:00
Cory LaNou
37e677a639
better validation for arguments for [non]derivative
2015-05-19 16:17:36 -06:00
Cory LaNou
b71540e57b
fix validateCountDistinct
2015-05-19 12:43:16 -06:00
Cory LaNou
7de477889b
validate arguments for aggregate functions
2015-05-19 12:29:39 -06:00
Cory LaNou
28d53b644f
first pass at count distinct
2015-05-19 12:29:39 -06:00
Cory LaNou
fc7d63ce61
validate methods can be private
2015-05-19 09:16:21 -06:00
Cory LaNou
4e5c72ef69
refactor RewriteDistinct (thx @dgnorton)
2015-05-19 09:16:21 -06:00
Cory LaNou
2b7701678c
remove cruft
2015-05-19 09:16:21 -06:00
Cory LaNou
580def2ff6
only rewrite if we have distinct
2015-05-19 09:16:20 -06:00
Cory LaNou
b9de38e7d4
support SELECT DISTINCT foo and SELECT distinct(foo)
2015-05-19 09:16:20 -06:00
Cory LaNou
db79464ae0
more refactoring
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
4c28c33332
validateDistinct should complain about aggregates before fields
2015-05-19 09:16:20 -06:00
Cory LaNou
69ff1d2c61
allow for a quoted field name in distinct
2015-05-19 09:16:19 -06:00
Cory LaNou
7d11effe0f
make distinct care about the same thing aggregates do for validation
2015-05-19 09:16:19 -06:00
Cory LaNou
3d30720ec4
wip
2015-05-19 09:16:19 -06:00
Cory LaNou
3f9eacf24c
add validations to parser for distinct
2015-05-19 09:16:19 -06:00
Cory LaNou
b6b916edbc
add distinct keyword
2015-05-19 09:16:19 -06:00
Todd Persen
1fa84c9387
Merge pull request #2579 from influxdb/aggregate-where-groupby-fix-2557
...
Fix false positive error for `aggregate functions with GROUP BY time …
2015-05-14 17:02:27 -07:00
Jason Wilder
34007a8be9
Make duration argument optional for derivatives
...
If it's not specified, it defaults to 1s for raw queries and to the
group by duration on group by queries.
2015-05-14 16:13:04 -06:00
Jason Wilder
faa099a382
Fix code review comments
2015-05-14 15:45:57 -06:00
Cory LaNou
098c65ad18
fix false positive error for `aggregate functions with GROUP BY time require a WHERE time clause`
2015-05-14 15:45:13 -06:00
Jason Wilder
98521b273e
Add non_negative_derivative
...
Fixes #1477
2015-05-13 15:57:48 -06:00
Jason Wilder
a0a4600e7f
Add derivative function
...
Calculates the derivative of consequtive points and normalizes the
value to a given interval. It supports simple derivates over
fields as well as nested derivatives over another aggregate function.
Fixes #1822
2015-05-13 15:35:42 -06:00
Jason Wilder
7fd9a0acd3
Add validation for derivative arguments
...
Derivative must be of the form derviative(field, duration) or
derivative(agg(field), duration).
2015-05-13 15:35:42 -06:00
Jason Wilder
eb1d7a659f
Prohibit multiple columns in select when using derivative
...
May be supported in the future but workaround is to run separate
queries.
2015-05-13 15:35:42 -06:00
Cory LaNou
eb1a4f669a
refactor selectStatement validate
2015-05-12 08:56:38 -06:00
Cory LaNou
bfdf05033d
refactor validating select statement
2015-05-12 08:42:39 -06:00
Cory LaNou
7963a85914
no longer need hasCount
2015-05-11 17:48:37 -06:00
Cory LaNou
0155f8bb6d
hasWhereTime -> hasTimeDimensions
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
86db3574ad
fix #2286 : parse error on CREATE CONTINUOUS QUERY
2015-04-17 16:40:29 -04:00
David Norton
78b1070775
make nowValuer public / exported
2015-04-15 11:26:36 -04:00
Philip O'Toole
96a81826ec
Support int64 data types
2015-04-13 11:04:27 -07:00
Philip O'Toole
bf1a8aa1e4
Use uint64 for Series IDs
...
Fixes issue #1649
2015-04-10 16:11:34 -07:00
David Norton
25cea58635
refactor scanning & parsing of identifiers
2015-04-09 13:21:13 -04: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
Philip O'Toole
b045a0008e
Remove redundant Aggregated() on select statement
2015-03-19 15:22:43 -07:00
Paul Dix
6d85d81a0b
Make select statement clone copy IsRawQuery
2015-03-19 17:07:56 -04: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
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
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
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
David Norton
a032d77fa9
influxql: make walkFunctionCalls a func not method
2015-03-09 20:03:49 -04:00
David Norton
759838b5a0
influxql: make walkNames a func instead of a method
2015-03-09 19:59:03 -04:00
Paul Dix
93f3a229c6
Fix merge conflicts
2015-03-06 16:30:26 -08:00