Commit Graph

1231 Commits (876de6b745747a19d5897306b3e14606ebbe8dd6)

Author SHA1 Message Date
John Shahid cac571d4fb pvt #59136004. get rid of ints and use int64 instead. 2013-10-18 13:20:59 -04:00
John Shahid e4b60654a7 fix the escape sequence. 2013-10-18 13:19:13 -04:00
John Shahid a1444b57b4 fix a broken test. 2013-10-18 13:19:13 -04:00
John Shahid f5f0bef09e use more descriptive name. 2013-10-18 13:19:13 -04:00
Todd Persen 48e864b64e executeFunctionQuery… isn't used anymore, so tossing it. 2013-10-18 13:08:10 -04:00
Todd Persen d22654bf8d Add support for distinct() 2013-10-18 12:56:42 -04:00
Paul Dix 930ecf9448 Datastore can delete ranges of series matching a regex 2013-10-18 12:02:07 -04:00
Paul Dix 605866e18a Update data store so select from a regex works 2013-10-18 11:26:44 -04:00
John Shahid 9adf374d1d pvt #59002514. default start and end time set properly.
Start time defaults to 1 hour before end time if it wasn't specified
in the query.  End time defaults to the current time. If neither start
or end time are given, the query defaults to all points between an
hour ago and current time.
2013-10-18 11:09:35 -04:00
Paul Dix c161c494aa Make the compacts run sychronously instead of in a goroutine. Might be causing panics in the test suite 2013-10-17 20:27:49 -04:00
Todd Persen 27b62caa29 Update aggregators to support returning of multi-value results. 2013-10-17 19:21:54 -04:00
John Shahid 9254aa8b54 implement the write api. 2013-10-17 18:10:52 -04:00
Paul Dix 77819383f4 Datastore will delete and compact all the column data for a given series and time range 2013-10-17 18:02:44 -04:00
John Shahid 24502f9cbe add a test to make sure regex matching works. 2013-10-17 17:16:41 -04:00
Todd Persen 4bd569f576 Implement sum(). 2013-10-17 16:59:45 -04:00
John Shahid 9df7ab5ef0 fix a compilation error. 2013-10-17 16:52:07 -04:00
John Shahid 488103a4cd pvt #59075198. GetReferencedColumns returns a map from Value to column names where value can be a regex or a table name. 2013-10-17 16:46:58 -04:00
John Shahid e006e37b04 parse regex and make sure we return an error if the regex is invalid. 2013-10-17 16:46:58 -04:00
John Shahid f107b664f9 add support for chunked queries. 2013-10-17 16:46:58 -04:00
Paul Dix 00a11618b5 Change default query order to descending. Make datastore respect query order 2013-10-17 16:17:46 -04:00
Paul Dix cb030ab77d Make datastore respect limit on query 2013-10-17 15:35:48 -04:00
Paul Dix a456426e29 Make queries for count(*) work in datastore 2013-10-17 15:10:59 -04:00
Paul Dix b69bb63c50 Update datastore to work for select * queries 2013-10-17 14:25:25 -04:00
John Shahid 400611df54 fix the broken tests. 2013-10-17 13:54:43 -04:00
John Shahid ea41a98727 draft implementation of the http query api. 2013-10-17 13:22:51 -04:00
John Shahid ab00b6155e change the engine's interface to run a query string. 2013-10-17 13:22:51 -04:00
John Shahid 9ca1975b2c add more dependencies. 2013-10-17 13:22:51 -04:00
John Shahid 842b17b3c4 update the docs. 2013-10-17 13:22:50 -04:00
Paul Dix 9842f11656 Add test for selecting aggregate with group by returns only the group by column 2013-10-17 13:21:57 -04:00
Paul Dix 10f82d9042 Add failing spec for expected bahavior from the query api for Shahid to implement. 2013-10-17 13:13:31 -04:00
Paul Dix ce0720260f Update Query api to have mostly private methods and only expose the actual public interface publicly 2013-10-17 12:29:14 -04:00
John Shahid 766235426c add an explicit test for filtering when there's time in the where condition. 2013-10-16 17:44:13 -04:00
John Shahid 76eb8d64d7 remove time conditions after parsing the query and storing start and end time. 2013-10-16 17:40:39 -04:00
Paul Dix 69e95c7d08 Make db filter results. Shahid breaks the build... 2013-10-16 17:32:54 -04:00
John Shahid 8745da43e3 move the Filter method to the datastore. 2013-10-16 17:27:06 -04:00
John Shahid b47a658555 fix the test and the operator mapping. 2013-10-16 17:07:44 -04:00
Paul Dix 52748948e0 Add test to ensure querying by time works 2013-10-16 16:31:32 -04:00
John Shahid 938029e3c5 pvt #59002188. add points filtering to the engine package. 2013-10-16 16:29:28 -04:00
John Shahid af21903e19 test switching the position of time in the where condition. 2013-10-16 16:29:28 -04:00
Paul Dix f6b1d20df0 Added tests to make sure multiple databases and time series work correctly 2013-10-16 16:07:35 -04:00
Paul Dix 734e792e11 Add test to make sure it persists data 2013-10-16 15:20:31 -04:00
Paul Dix e6ff2940e3 initial parts of datastore to write data and execute a basic query 2013-10-16 14:35:58 -04:00
John Shahid d1747f17f4 return a map from table names to the column names that are used in the query. 2013-10-16 14:29:20 -04:00
John Shahid 0da4a23776 add tests for float value types. 2013-10-16 14:29:20 -04:00
Todd Persen 37c39d5fef implement mode() for unimodal datasets 2013-10-16 13:35:04 -04:00
John Shahid 19a0e52044 fix the regex in the test query. 2013-10-16 13:14:41 -04:00
John Shahid 8e997556fd retain the type of the values, i.e. whether they are regex, names, function calls, etc. 2013-10-16 13:13:29 -04:00
John Shahid 5b923875cd make valgrind memory leak check optional. 2013-10-16 13:13:29 -04:00
John Shahid a87de5e548 minor renaming. 2013-10-16 13:13:28 -04:00
Todd Persen f2675d4019 Implement median().
Finishes #58935134
2013-10-16 09:48:21 -04:00