Jason Wilder
155adb7d24
Fix panic: runtime error: index out of range
...
Fixes #2374
2015-04-23 11:18:19 -06:00
Jason Wilder
d0cc98356b
Fix error calling MarshalJSON for type *influxdb.Result: json: unsupported value: NaN
...
If the MapMean did not have any values in the iterator, it would return
and empty meanMapOutput(). ReduceMean would in turn divider the results
by an unitialized float64 producing a NaN. NaN is not serializable to JSON
by default.
2015-04-23 11:18:19 -06:00
ben hockey
91db81f374
calculate mean without causing overflow
2015-04-22 11:40:16 -05:00
Jason Wilder
406a951718
Fix comments
2015-04-21 13:39:58 -06:00
Jason Wilder
90e3059a8b
Fix processRawQuery from returning duplicate data
2015-04-21 13:39:58 -06:00
Marcos Lilljedahl
2bac1a8097
Add test for REGEX operators
2015-04-20 19:43:06 -03:00
David Norton
86db3574ad
fix #2286 : parse error on CREATE CONTINUOUS QUERY
2015-04-17 16:40:29 -04:00
Philip O'Toole
d21a9493c6
Remove debug commit
2015-04-16 11:50:47 -07:00
ben hockey
d993a3f36b
use nil as default return value for MapCount
...
fixes #2271
2015-04-15 11:55:07 -07: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
David Norton
78b1070775
make nowValuer public / exported
2015-04-15 11:26:36 -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
96a81826ec
Support int64 data types
2015-04-13 11:04:27 -07:00
Paul Dix
37d4f2a265
Fixes based on feedback.
2015-04-10 16:11:34 -07:00
Philip O'Toole
bf1a8aa1e4
Use uint64 for Series IDs
...
Fixes issue #1649
2015-04-10 16:11:34 -07:00
Paul Dix
7661546a47
Finish up distributed queries.
2015-04-10 16:11:34 -07:00
Paul Dix
d41b85a715
Remove the interval setting from NextInterval to make remote mappers work.
2015-04-10 16:11:34 -07:00
Paul Dix
6e8ea9ae91
Fix errors on limits and chunked raw queries.
2015-04-10 16:11:34 -07:00
Paul Dix
113995032e
WIP: Initial implementation of remote mapper for distributed queries.
2015-04-10 16:11:34 -07:00
Paul Dix
2a3ed635ed
Add chunked responses and streaming of raw queries.
...
Refactored query engine to have different processing pipeline for raw queries. This enables queries that have a large offset to not keep everything in memory. It also makes it so that queries against raw data that have a limit will only p
rocess up to that limit and then bail out.
Raw data queries will only read up to a certain point in the map phase before yielding to the engine for further processing.
Fixes #2029 and fixes #2030
2015-04-10 16:11:33 -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
c2b61af3a1
fix #2224 : make influxql keywords case insensitive
2015-04-09 16:08:28 -04:00
David Norton
25cea58635
refactor scanning & parsing of identifiers
2015-04-09 13:21:13 -04:00
Cory LaNou
39d74e0486
fix fmt error
2015-04-08 09:26:23 -06: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
Philip O'Toole
e4cf36fe29
Combine values across mappers before emit
2015-04-02 16:00:52 -07:00
Paul Dix
6c46a5c83b
Add chunked responses and streaming of raw queries.
...
Refactored query engine to have different processing pipeline for raw queries. This enables queries that have a large offset to not keep everything in memory. It also makes it so that queries against raw data that have a limit will only p
rocess up to that limit and then bail out.
Raw data queries will only read up to a certain point in the map phase before yielding to the engine for further processing.
Fixes #2029 and fixes #2030
2015-04-02 15:22:27 -07:00
Paul Dix
332c42750b
Update server and handler to work with streamed responses
2015-04-02 15:22:27 -07:00
Philip O'Toole
1219ba7b93
Add simple WHERE time > absolute value test
2015-03-30 16:37:25 -07:00
Philip O'Toole
1b700264a7
Also include NEQ in filters
...
This fixes != for field value comparisons.
2015-03-27 23:07:57 -07:00
Philip O'Toole
272f7f760e
Add unit tests, pass now.
2015-03-27 17:04:46 -07:00
Philip O'Toole
e07aeaa030
Unit test leading underscore as IDENTs
2015-03-26 13:11:11 -07:00
Philip O'Toole
6627257f44
Allow leading underscores for IDENTs
2015-03-26 13:11:06 -07:00
Todd Persen
94a8019fc7
Wire up DROP CONTINUOUS QUERY
2015-03-25 11:58:33 -07:00
Todd Persen
edf42569a0
Merge pull request #2049 from influxdb/fix-cq-example
...
Fix CQ example on InfluxQL spec
2015-03-25 11:50:48 -07:00
Cory LaNou
84a9b8a3fa
the naming of the function is wrong, need future refactor, this logic is valid
2015-03-24 20:14:05 -06:00
Cory LaNou
c21ca156e9
this logic should never happen
2015-03-24 20:14:05 -06:00
Cory Lanou
7be574534c
Fixing intervals for group by. Fixing bad PR
2015-03-24 20:13:05 -06:00
Philip O'Toole
1c440f8542
Implement "SHOW DIAGNOSTICS"
2015-03-23 23:45:57 -07:00
Paul Dix
6bba6043d7
Fix CQ example on InfluxQL spec
2015-03-22 11:40:33 -04:00
Cory LaNou
dd6bb91463
fix test
2015-03-20 16:52:32 -06: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
fe44f63495
Fix parser unit test, statement is raw
2015-03-19 16:36:24 -07: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