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
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
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
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