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
cb1aaa8e42
Merge pull request #4375 from influxdb/subscriptions
...
Feature add subscriber service for creating/dropping subscriptions
2015-10-15 09:17:26 -06:00
Nathaniel Cook
8b31007aa7
Adds subscriber service for creating/dropping subscriptions to the
...
InfluxDB data stream.
2015-10-14 15:23:45 -06:00
Sean Beckett
8f79ce89aa
Update INFLUXQL.md
2015-10-13 16:54:48 -07:00
Konstantin Shaposhnikov
d887e798c3
Fix infinite recursion in DeleteStatement.String()
...
Fixes #4406
2015-10-12 21:38:50 +08:00
David Norton
512d6ac050
fix #4280 : only drop points matching WHERE clause
2015-10-09 18:34:32 -04: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
Nick Dawbarn
136dbef0e7
Formatting fixes
2015-10-08 19:41:36 +10:00
Nick Dawbarn
26f6d00668
Bugfix for #3429 String representations of RegexLiterals generated in influxql/ast.go add the / char as a start and end delimiter, but does not escape any / characters that may exist with the regex
2015-10-08 19:41:36 +10:00
Konstantin Shaposhnikov
95a0e149b0
Fix aggregates validation in presence of arithmetic expressions
...
Fixes #4325
2015-10-06 21:24:50 +08:00
David Norton
4375545064
fix #4276 : walk DropSeriesStatement
2015-10-05 19:56:30 -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
d036f63771
additional parser test for DROP SERVER
2015-10-01 15:39:15 -05: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
205c7674f6
add drop server tests
2015-10-01 15:39:14 -05:00
Cory LaNou
3c74c13908
add drop server statement
2015-10-01 15:39:14 -05:00
Jason Wilder
6dcd8d71a1
Merge pull request #4149 from peekeri/derivative_fix
...
influxql: when using derivative, check 'group by time' instead of 'where time ...'
2015-09-30 16:44:54 -06:00
Philip O'Toole
8177b80929
Update, and ease maintainabilty of SHOW errors
...
Fixes issue #4164 .
2015-09-24 13:01:31 -07:00
Cory LaNou
82c50bb746
Merge pull request #4202 from influxdb/issue-1577-rb
...
Allow fields to be selected with "selector" aggregate functions
2015-09-23 16:33:20 -05:00
Cory LaNou
ab84d3eb00
break early when detecting only selector statements
2015-09-23 15:27:43 -05:00
Cory LaNou
6b19e3dd9c
minor refactorings
2015-09-23 09:47:24 -05:00
Cory LaNou
78bc740434
full support for min/max/first/last
2015-09-23 09:03:57 -05:00
Philip O'Toole
683cc0f226
Fix string representation of SHOW STATS
2015-09-22 21:57:20 -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
Ben Johnson
8e27cf1fd8
Merge remote-tracking branch 'upstream/master' into refactor-select-mapper
...
Conflicts:
tsdb/store.go
2015-09-22 13:58:24 -06:00
Ben Johnson
b213ddad78
refactor cursor
2015-09-22 13:10:12 -06:00
Ben Johnson
1b8b625787
refactor SelectMapper
2015-09-22 13:09:26 -06:00
David Norton
e4800df006
add more parser tests
2015-09-22 14:25:13 -04:00
David Norton
e176d2c0dd
make SHOW TAG KEYS support (S)LIMIT & (S)OFFSET
2015-09-21 13:05:53 -04:00
Jari Sukanen
c844ec10d5
influxql: when using derivative, check 'group by time' instead of 'where time ...'
...
When using derivative, it is required that aggregate function is used as
sub-call when grouping by time is used. However, AST parsing used to check
if WHERE-clause contained condition with 'time'.
Fix this by changing check to see if groupByInterval is present.
Modify also related error case tests and add check for
select derivative(...) ... where time > ...
2015-09-18 08:55:09 +03:00
Cory LaNou
ba830be3b9
actually move influxql.Row* -> models.Row*
2015-09-16 16:32:50 -05:00
Cory LaNou
5395ac7634
Period in field name that matches measurement fails. Fixes #3457
2015-09-15 16:26:39 -05:00
Cory LaNou
6ffd38f02b
Merge pull request #4084 from influxdb/issue-3718
...
Derivative query with group by time but no aggregate function validation
2015-09-11 14:25:14 -05:00
Cory LaNou
91d833efeb
Derivative query with group by time but no aggregate function should fail parse. Fixes #3718
2015-09-11 14:16:29 -05:00
Daniel Morsing
66fc270d1e
Move aggregate funcs into tsdb
...
Pure move, No functional changes.
2015-09-11 14:27:47 +00:00
Cory LaNou
7f2ba8155a
removing unecessary continues
2015-09-10 13:10:21 -05:00
Cory LaNou
05f69b3d6c
Validate Dimension for proper time scenarios. Fixes #3902
2015-09-10 13:10:21 -05:00
Cory LaNou
59ef75a183
Allow wildcards without abandon! Fixes #3978
2015-09-09 15:27:15 -05:00
Cory LaNou
a09e2c27bb
minor tweaks based on PR review
2015-09-04 13:41:46 -05:00
Cory LaNou
fa4415b3a4
refactor processing top/bottom results. clarify some comments
2015-09-04 13:30:43 -05:00
Cory LaNou
bdc54cf5d2
helpers -> pkg + readme
2015-09-04 13:30:43 -05:00
Cory LaNou
6a3bedc0e1
add additional parser test for top function with tags
2015-09-04 13:30:42 -05:00
Cory LaNou
9ab3d89c06
bucketTime* -> tMin*
2015-09-04 13:30:42 -05:00
Cory LaNou
4a9e936858
minor comment fix
2015-09-04 13:30:42 -05:00
Cory LaNou
3ca93594c3
BucketTime -> TMin
2015-09-04 13:30:42 -05:00
Cory LaNou
b71833ab46
refactor allowMixedAggregates, comment cleanup
2015-09-04 13:30:42 -05:00
Cory LaNou
88ce04a4b9
move comment to proper line
2015-09-04 13:30:42 -05:00
Cory LaNou
9703467171
refactor validateAggregates
2015-09-04 13:30:41 -05:00
Cory LaNou
3db5a85139
all tests passing for top
2015-09-04 13:30:41 -05:00
Cory LaNou
347ffc70b4
wire up advanced top sorting/slicing
2015-09-04 13:30:41 -05:00
Cory LaNou
8c4595b345
top is coming together. filling out fields properly
2015-09-04 13:30:41 -05:00
Cory LaNou
ba79007960
wip
2015-09-04 13:30:41 -05:00
Cory LaNou
6f7eca9778
correcting sort behavior for top
2015-09-04 13:30:40 -05:00
Cory LaNou
046282249a
wip remapping top output
2015-09-04 13:30:40 -05:00
Cory LaNou
d060f3aba9
move all aggregate validations to the parser validation from map/reduce functions
2015-09-04 13:30:40 -05:00
Cory LaNou
c5358dcd2a
always sort results for ReduceTop. Skip test until we verify expected behavior
2015-09-04 13:30:40 -05:00
Cory LaNou
b45872c1ac
first pass at ReduceTop
2015-09-04 13:30:40 -05:00
Cory LaNou
6b005af731
change ReducePercentile signature
2015-09-04 13:30:40 -05:00
Cory LaNou
e6de6d0887
change percentile to check errors in parsing, not in mapping
2015-09-04 13:30:40 -05:00
Cory LaNou
f8d486f99c
maptop bool test
2015-09-04 13:30:40 -05:00
Cory LaNou
52cb46fc56
mixed maptop test with strings
2015-09-04 13:30:40 -05:00
Cory LaNou
dd278a10f6
add test for mixed numerics and fix infer
2015-09-04 13:30:39 -05:00
Cory LaNou
193fd501db
first pass at MapTop. more testing to come
2015-09-04 13:30:39 -05:00
Cory LaNou
72fd115dc2
exposing tags on cursors, top/bottom are valid funcs now
2015-09-04 13:30:39 -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
Daniel Morsing
c4092d7fc3
Revert "move aggregate functions"
2015-09-02 10:47:58 -07:00
Daniel Morsing
65340a023b
Move aggregate funcs into tsdb
...
Pure move, No functional changes.
2015-09-01 14:25:59 -07:00
Paul Dix
040fa060df
Add more detailed logging for compactions
2015-09-01 09:52:20 -04:00
Daniel Morsing
841e6fc6b5
Merge pull request #3908 from influxdb/firstopt
...
only look at the first value for first()
2015-08-31 14:21:29 -07:00
Daniel Morsing
8ca8293d11
only look at the first values for first()
...
Since we set up the aggregate queries so that iterator is ordered,
we only need to look at the first value. This cuts about 10 seconds
off a large single series query running first.
2015-08-31 13:43:28 -07:00
Philip O'Toole
78170bd798
Parse multiple tokens at once (NOT EXISTS)
2015-08-29 09:56:15 -07:00
Philip O'Toole
5ae004d062
Update INFLUXQL keywords
...
[ci skip]
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
David Norton
3c45838c10
update INFLUXQL.md
2015-08-27 08:38:16 -04:00
Philip
45cc51edfe
During first() and last(), break any tie by value
...
If 2 or more points during this map-and-reduce share the same timestamp,
the tie is broken by looking at the value. This ensures that these
functions operate in a deterministic manner.
This solution due to @jwilder
2015-08-25 22:26:03 -07:00
Philip O'Toole
e032242d83
Refine implementation, sole time is invalid
2015-08-21 12:14:53 -07:00
Philip O'Toole
a45d46aac3
Add parser-level test for SELECT on time
2015-08-21 12:14:39 -07:00
Philip O'Toole
7a2f0a89bb
SELECT on time should return error
...
Fixes #3010 .
2015-08-21 12:14:39 -07:00
Daniel Morsing
e2db51e4d5
Merge pull request #3721 from influxdb/timeliteral
...
interpret number literals compared against time as nanoseconds from epoch
2015-08-18 14:31:53 -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
Philip O'Toole
487c336571
Correctly merge rows for identical series
...
If no chunking was requested by the user, the co-ordinating node buffers all
results in RAM before emitting a single result. However buffering was not
merging results for rows which had data for the same series. This change fixes this.
Fixes issue #3242 .
2015-08-17 13:43:17 -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
d0993c5e3f
Unit-test detection of agggregate and raw queries
2015-08-11 12:25:06 -07:00
Philip O'Toole
4770451837
Return error if queries mix aggregate and raw
...
Fixes issue #3198
2015-08-11 11:59:04 -07:00
Philip O'Toole
18589e20e6
Force all values to Float64 for math
...
Any literal values in a math query e.g. the '2' in 'value * 2' are
stored as float64, so all other values must be cast to this type. This
does mean that precision may be lost if the integer values are greater
than 2^53.
2015-08-10 13:13:04 -07:00