Paul Dix
8fee14fbf8
Fixes based on PR feedback.
...
* Pull out magic numbers for running CQs in the broker
* Typo fixes in comments
* Update the process_continuous_queries endpoint to not have gzip
* Remove previous implementation of MeasurementNames in favor of new simpler one
2015-02-17 21:02:53 -05:00
Paul Dix
8d9bcdbc97
Finish wiring up basic version of CQs
2015-02-17 21:02:52 -05:00
Paul Dix
fec6764b09
WIP: wire up continuous queries
...
* Fix run to work with CQ broker
* Fix CQ handler
* Fix SetTimeRange to use RFC3339Nano
* Fix the time range tests
* Fix the parser to parse for RFC3339Nano literals in addition to the other format
* Add logic for running CQs
* Remove duplicate WriteBufferSize default setting from config
2015-02-17 21:02:18 -05:00
Paul Dix
b0d4b6da55
WIP: fix cq query times
2015-02-17 21:01:21 -05:00
Paul Dix
f2d132b361
Implement continuous queries with group by intervals
...
* Update defaults on Broker for when to trigger CQ runs
* Add config settings for how often to calculate and recalculate CQ results
* Update Server to have CQ settings
* Update AST to fold removed time literals when setting time range
* Add periodic CQ running functionality to server
2015-02-17 21:00:24 -05:00
Paul Dix
34e037a9d8
Add SetTimeRange to SelectStatement for use by continuous queries
2015-02-17 21:00:24 -05:00
Paul Dix
5f14d5faf5
WIP: start implementation of continuous queries
...
* Update SelectStatement to have GroupByInterval
* Update parser to verify that CQs have GroupByInterval if Aggregated
* Implement CreateContinousQuery on Server
* Add ContinuousQueries to database
2015-02-17 21:00:24 -05:00
Philip O'Toole
dcdb4b77a1
Merge branch 'master' into support_all_value_types
...
Conflicts:
database.go
server.go
2015-02-16 09:21:10 -08:00
Paul Dix
4cd3494ddc
Update interface on iterator.Next() to pass raw data along with key and value
2015-02-14 17:12:38 -05:00
Philip O'Toole
276c5ded5a
int maps to influxql.Number
2015-02-13 16:28:12 -08:00
Paul Dix
b394fc203f
WIP: updating the signature for iterators to pass around raw bytes for field values.
2015-02-13 14:04:45 -05:00
Philip O'Toole
bf9bfd6106
Error if field's type has changed
2015-02-12 16:06:37 -08:00
Cory LaNou
aa7073bfb0
make the fields public to all for serializing them later
2015-02-12 15:12:14 -07:00
Cory LaNou
61d4cd6a5a
shortcut calculating spread if not necessary
2015-02-12 10:40:24 -07:00
Cory LaNou
7c12afb9e1
fixing comment
2015-02-12 09:56:39 -07:00
Cory LaNou
3dd53ebe80
wire up spread function
2015-02-12 09:39:41 -07:00
Cory LaNou
59a953db97
Merge pull request #1575 from influxdb/batch-std-dev
...
emit in batches of 1000
2015-02-11 18:19:39 -07:00
Cory LaNou
ecb145d15d
fix test
2015-02-11 16:06:49 -07:00
Cory LaNou
2e93fcef53
fixing test comment
2015-02-11 16:06:09 -07:00
Cory LaNou
79fe16fb6c
add comment about why we batch
2015-02-11 16:03:01 -07:00
Cory LaNou
9e80b2173a
Wire up first/last aggregate functions
2015-02-11 15:55:51 -07:00
Cory LaNou
4b18ddedec
magic numbers are evil
2015-02-11 15:11:45 -07:00
Cory LaNou
5911b38e94
emit in batches of 1000
2015-02-11 15:00:39 -07:00
Cory LaNou
6b9ba8baef
check to see if we found values to calculate
2015-02-11 12:37:14 -07:00
Cory LaNou
007dd83b9a
tests for stadard deviation
2015-02-11 12:33:45 -07:00
Cory LaNou
d108af5a94
fix standard deviation calculation
2015-02-11 12:33:10 -07:00
Cory LaNou
bf0c4599ba
first pass at stddev. tests incoming
2015-02-11 11:21:55 -07:00
Cory LaNou
8421d59eb0
no more pointers, refactored min/max
2015-02-11 10:45:44 -07:00
Cory LaNou
fe864792b5
map should do more work locally before passing up to reduce
2015-02-11 09:35:47 -07:00
Cory LaNou
d0873a9b15
wire up max fix #1474
2015-02-10 16:14:22 -07:00
Cory LaNou
eb845b1ecc
return nil instead of 0 if there is nothing to reduce, additional zero test
2015-02-10 13:35:55 -07:00
Cory LaNou
b17af5d7d5
more testing
2015-02-10 12:47:30 -07:00
Cory LaNou
4228635bf1
wire up min
2015-02-10 12:10:37 -07:00
Cory LaNou
62df7152c6
wildcards are now supported
2015-02-09 19:59:13 -07:00
Mark Rushakoff
2e4b9d8b3b
Add missing valid statements for SHOW
...
And alphabetize the order.
2015-02-09 17:06:18 -08:00
Andrew Watkins
6b68f53b10
Fail faster on not-yet-implemented wildcard query
...
Signed-off-by: Will Faurot <will@influxdb.com>
2015-02-09 14:37:52 -07:00
Paul Dix
712297cdb5
Merge pull request #1506 from influxdb/fix-select-where-time
...
Fix queries that have only time in their where clause
2015-02-08 02:05:03 -05:00
Paul Dix
c6e7a7f9ea
Fix mapper to check if the iterator is EOF before calling the map function
2015-02-07 06:29:04 -05:00
Philip O'Toole
54a1ac01b1
Test parsing of milliseconds
2015-02-05 14:51:36 -08:00
Paul Dix
bc813cc9da
Fix queries with where clause only having time.
...
* Add OnlyTimeDimensions to SelectStatement
* Update the database to handle queries that only have a time statement
* Fix server test to insert a time literal that can be parsed.
2015-02-05 01:29:19 -05:00
dgnorton
c7d5d603c2
Merge pull request #1491 from influxdb/influxql-spec
...
update InfluxQL spec
2015-02-04 11:54:17 -05:00
David Norton
30db7a0df1
INFLUXQL.md: explain escaping and fix DROP USER
2015-02-04 11:49:05 -05:00
David Norton
2b84113487
issue #1423 : wire up show field keys
2015-02-04 10:59:47 -05:00
Cory LaNou
887fbd2054
spelling is hard
2015-02-03 17:02:41 -07:00
Cory LaNou
55cc5cfa09
sending all time back as RFC3339Nano instead of UnixNano (int64)
2015-02-03 16:55:33 -07:00
David Norton
819e1107be
update DROP SERIES & MEASUREMENT
2015-02-02 23:27:09 -05:00
David Norton
2934b22048
fix formatting issue in INFLUXQL.md
2015-02-02 21:42:14 -05:00
David Norton
729be5ef36
update InfluxQL spec
2015-02-02 21:33:17 -05:00
Cory LaNou
37f62dbe71
We now store in nanoseconds and send back nanosecond values
2015-02-02 14:08:13 -07:00
David Norton
19992f3ecc
gofmt -s (simplify)
2015-02-01 15:33:12 -05:00