Commit Graph

182 Commits (1b700264a7c6892c3ae0d5bcdd34446ec930e0fb)

Author SHA1 Message Date
Paul Dix 889f0a323f Fix problem with merging series that have unequal number of points in group by interval 2015-02-27 01:02:34 -05:00
Kai Zhang 9f8639ded8 Fix error when alter retention policy
+ fix error when execute ALTER RETENTION POLICY bar ON foo DURATION 1h
+ add test to verify the fix

Signed-off-by: Kai Zhang <zhangk1985@gmail.com>
2015-02-27 09:54:39 +08:00
Cory LaNou 2a9306fde9 clarify test condition 2015-02-26 17:10:09 -07:00
Cory LaNou c662c628d3 add test that covers series not existing in all buckets for drop series 2015-02-26 17:10:09 -07:00
dgnorton 37aecf94b5 Merge pull request #1751 from influxdb/fix-1741
fix #1741: panic when select result is empty
2015-02-26 18:26:06 -05:00
David Norton c6bdd39f2e fix #1741: panic when select result is empty 2015-02-25 22:39:52 -05:00
Cory LaNou 66c5750726 return early if no measurement. clarify comments 2015-02-25 12:56:23 -07:00
Cory LaNou 220ea564e7 adding test for drop measurement that walks through multiple measurements/tags 2015-02-25 12:42:24 -07:00
Cory LaNou 81d22fb0b4 first basic drop measurement test 2015-02-25 12:42:24 -07:00
Cory LaNou 223052d5dd Disable test. Issue #1727 2015-02-25 11:10:13 -07:00
Paul Dix 36a5c564fe Add test with an AND in the query 2015-02-24 17:10:35 -05:00
Paul Dix 036859c191 Fix limit and offset, add more tests.
Also updated the Clone and Substatement methods to copy the offset.
2015-02-24 01:42:11 -05:00
Paul Dix dffcac541d Add support for limit and offset on the number of series returned 2015-02-24 01:16:06 -05:00
Paul Dix db0f5f025b Add server test for raw data query GROUP BY * 2015-02-24 00:43:53 -05:00
Paul Dix 8455a2637e Fix server test after refactor of write api 2015-02-24 00:36:07 -05:00
Paul Dix a8a0b9f24e Fix raw data query where some values are null
I also removed the engine test for the raw planner. It's getting tested elsewhere and it would have been too difficult to make it work. Besides, that's getting replaced soon anyway.
2015-02-24 00:36:07 -05:00
Paul Dix b69597f376 Fix queries that return raw data without aggregates. 2015-02-24 00:36:07 -05:00
Philip O'Toole 0475d176f2 Wildcard unit test should expect "series" not "rows" 2015-02-23 19:17:56 -08:00
Philip O'Toole 04c50ae8a1 Update wildcard unit test for "Fields" 2015-02-23 19:11:50 -08:00
Philip O'Toole 5f71aed8bd Fix previously failing GROUP BY * unit tests
GROUP BY * functionality is now in place.
2015-02-23 19:09:55 -08:00
Philip O'Toole 2647e79e2a Add failing test of wildcard GROUP BY 2015-02-23 19:07:01 -08:00
Paul Dix 89b80dcd66 WIP: insane refactor of engine. Must come back later. 2015-02-23 18:07:01 -05:00
Philip O'Toole 2f0fe901e3 Rename "Values" to "Fields" for writes 2015-02-23 15:06:56 -08:00
Cory LaNou 8e086a447b Change delete to drop for [dD]ropDatabase 2015-02-23 13:14:18 -07:00
Philip O'Toole 3e727ac01e Change "Rows" to "Series" in API output 2015-02-22 21:21:49 -08:00
Cory LaNou d059b3e2da update test name 2015-02-21 21:20:28 -07:00
Cory LaNou 63b6719e39 better basic drop series test 2015-02-21 20:21:02 -07:00
Cory LaNou da10fa8e80 in depth drop series test 2015-02-21 20:06:58 -07:00
David Norton 61352f78b6 pass all series IDs to Server.DropSeries at once 2015-02-21 17:18:50 -07:00
Cory LaNou 5ab3731159 delete -> drop for series naming 2015-02-21 17:18:50 -07:00
Cory LaNou c2daa18aae first test for dropping series 2015-02-21 17:10:11 -07:00
Ben Johnson 4dbd1541f7 Add index tracking to metastore.
This commit adds tracking of the index to the metastore so that data
nodes will ignore replayed indexes when they are restarted. This
does not include index persistence for the shards.
2015-02-21 13:46:16 -07:00
Philip O'Toole ccc15b8abb Skip CQ unit test, maybe due to batch writes
The Query Engine is also being refactored, so this may affect this code.
2015-02-20 20:45:48 -08:00
Paul Dix 36d16a3172 Update broker to have URLs for replicas
* Update the infludb broker to not need a server so that it'll work on non-data node servers
* Update messaging broker to keep track of connect urls for replicas
2015-02-17 21:02:53 -05:00
Paul Dix 47cddda6e2 Fix up stubbed out CQ tests 2015-02-17 21:02:52 -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 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 0c8ded4197 Unit test retention policy enforcement 2015-02-11 09:54:07 -08:00
Philip O'Toole 8cb06c5b8e Refactor retention policy enforcement for testing 2015-02-11 09:54:07 -08:00
Philip O'Toole 8dae2c2268 Unit-test deletion of shard groups 2015-02-11 09:54:07 -08:00
Philip O'Toole 20bbbe759b Fix minor typo in unit test comment 2015-02-11 09:54:07 -08:00
Philip O'Toole 50ef1672cb Add stubbed enable of retention policy enforcement 2015-02-11 09:54:07 -08:00
Philip O'Toole f87d97467c Restart server tests after shard group creation 2015-02-10 20:32:36 -08:00
Cory LaNou 6b269ef09e adding comment on test for predictability, enhancing test 2015-02-10 10:00:09 -07:00
Cory LaNou 0811af6211 sorting was not required, it was a testing setup issue 2015-02-10 09:49:22 -07:00
Cory LaNou adcf038323 Merge pull request #1550 from influxdb/cli-not-reporting-errors
CLI needs to echo out errors from client library.
2015-02-10 09:28:27 -07:00
Cory LaNou 1f56514c29 Merge pull request #1540 from influxdb/select-wildcard
Select wildcard functionality implemented
2015-02-10 09:07:31 -07:00
Cory LaNou 7b28df0d49 someone needs to add a precommit hook... 2015-02-10 08:54:19 -07:00
Todd Persen 6b70408864 Merge pull request #1351 from influxdb/go-external
Change "code.google.com/p/go.*" to "golang.org/x/*"
2015-02-09 20:23:26 -08:00
Cory LaNou c866f57473 rebasing can suck sometimes 2015-02-09 20:04:19 -07:00
Cory LaNou df7e8e3add removing comments, test back to original state 2015-02-09 20:01:14 -07:00
Cory LaNou c83de8695a simplify test 2015-02-09 20:01:14 -07:00
Cory LaNou 86969a1fe8 add a test that better covers select * 2015-02-09 20:01:14 -07:00
Cory LaNou 8a1bb5922c added wildcard query functionality. fixes #1432 2015-02-09 19:59:13 -07:00
Paul Dix 3c26a3e91b Fix panic if a point doesn't have a value for a field.
Fixes #1530. Ensures that the series iterator doesn't yield points that don't have a value for the field that is being aggregated.
2015-02-09 03:39:42 -05: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
Philip O'Toole 6c60c6397f Add simple non-aggregate test
This makes it clearer what is going on.
2015-02-06 21:55:28 -08:00
Philip O'Toole 095d210d59 Fix time range condition in unit test 2015-02-06 20:36:53 -08:00
Cory LaNou 973bb78808 add tests for logging unauthorized access request 2015-02-06 10:03:34 -07:00
Cory LaNou 4225cd7407 move Authorize from func to method for Server 2015-02-06 09:16:45 -07:00
Cory LaNou 1604d7f604 refactor how we default authentication enabled 2015-02-05 15:54:32 -07:00
Cory LaNou f4dfb87acc first pass at hardening authorize 2015-02-05 14:39:40 -07:00
David Norton d0dc677292 fix #1516: ALTER RETENTION POLICY 2015-02-05 12:54:06 -05: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
Paul Dix c4a4f021ca Update server test case to show failing on where time clause 2015-02-04 06:51:01 -05:00
Cory LaNou 55cc5cfa09 sending all time back as RFC3339Nano instead of UnixNano (int64) 2015-02-03 16:55:33 -07: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
Cory LaNou 4b84a2d174 Point/Results duplicated in Client package. Custom marshaling for timestamps 2015-01-29 16:23:15 -07:00
Cory LaNou 8643aa28aa wip starting support for http endpoint taking epoch time 2015-01-29 16:23:15 -07:00
Ben Johnson 65fc906b00 fix test. 2015-01-28 04:06:24 -05:00
Ben Johnson a3609ee5b5 Add statement normalization before execution.
This commit adds a call to Server.NormalizeStatement() immediately before execution. It defers normalization
just before execution in case statements leading up it will alter the normalization process.
2015-01-27 22:56:30 -05:00
Paul Dix 74e1bb99b6 Fix failures after rebase 2015-01-27 20:29:15 -05:00
Paul Dix c2ded241ea WIP: wire up group bys and pretty much the whole shebang 2015-01-27 20:27:19 -05:00
Ben Johnson 385687b8b4 Add multishard iteration. 2015-01-27 20:26:32 -05:00
Ben Johnson 1eda0ffcb9 Refactoring query engine. 2015-01-27 20:26:31 -05:00
Ben Johnson d340ffcf3c Expression expansion and reduction. 2015-01-27 20:26:31 -05:00
Philip O'Toole a197d16ac8 Add top-level "results" key
This brings the API output into line with the API specification.
2015-01-27 15:47:47 -08:00
Todd Persen dadd97e4e5 Change "code.google.com/p/go.*" to "golang.org/x/*" 2015-01-22 18:36:57 -05:00
David Norton 2d34c71c0c Add authorization unit tests & code review fixes 2015-01-20 23:45:18 -05:00
SaviorPhoenix e96adbf80b Fix a simple printf fmt typo in server_test.go:574 2015-01-20 02:54:01 -07:00
Ben Johnson 81f457907f Add measurement normalization and identifier splitting. 2015-01-18 14:45:22 -07:00
Ben Johnson 55d623220c Merge branch 'master' of https://github.com/influxdb/influxdb into engine-intg
Conflicts:
	server_test.go
2015-01-14 22:21:55 -07:00
Ben Johnson 0e2aae61e3 Basic query engine integration. 2015-01-14 16:44:09 -07:00
Cory LaNou e4604fec36 Refactoring based on PR comments
Changing WriteSeries to take a slice of points instead of variable
arguments

Adding godoc comment for public type Point
2015-01-13 16:26:14 -07:00
Cory LaNou 9e48da134b change signature of WriteSeries to accept a public struct 2015-01-13 16:00:41 -07:00
Ben Johnson 47cd03f3d3 Partial engine integration. 2015-01-13 10:16:43 -07:00
Ben Johnson bbe7d1aa8c fix go vet 2015-01-13 08:00:30 -07:00
Ben Johnson d651deb0ab Fix server close race condition. 2015-01-13 07:47:45 -07:00
Ben Johnson ff470047ef Code review fixes. 2015-01-12 13:10:26 -07:00
Ben Johnson 071ab8510a Merge branch 'master' of https://github.com/influxdb/influxdb into write-series 2015-01-12 12:37:48 -07:00
Philip O'Toole 295d63cb57 More vet fixes 2015-01-11 15:14:22 -08:00
Ben Johnson 5652e12c63 Add write series. 2015-01-10 13:29:43 -07:00
Ben Johnson 946007916c Partial write series code. 2015-01-10 08:48:50 -07:00
Ben Johnson 70d84a9a2e Merge branch 'master' of https://github.com/influxdb/influxdb into join
Conflicts:
	cmd/influxd/run.go
	handler.go
	server.go
2015-01-06 17:25:34 -07:00
Ben Johnson 50a0826026 Add broker snapshot/restore and CLI join. 2015-01-06 17:21:32 -07:00
Philip O'Toole 4c4950a796 Rename AuthenticatedUser to Authenticate
Feedback from final code review.
2015-01-06 09:19:31 -08:00