Commit Graph

37 Commits (403881854ca4ff21c638ab0b6986ea2f60b5b95d)

Author SHA1 Message Date
David Norton 403881854c Fix derivative when there is a group by time() and fill
Fix #334
2014-10-21 17:19:04 -04:00
Todd Persen 9f89aaeb26 Aggregating by time should respect the natural boundaries of the argument.
Fix #387
2014-10-20 15:24:39 -04:00
John Shahid 0ca44c906d Merge branch '0.8'
Conflicts:
	api/http/api.go
	cluster/cluster_configuration.go
	cluster/cluster_configuration_test.go
	coordinator/coordinator.go
	engine/aggregator_operators.go
	engine/common_merge_engine.go
	integration/data_test.go
	parser/parser.go
2014-09-24 18:55:19 -04:00
John Shahid cdff908655 Remove an unused test 2014-09-24 18:06:03 -04:00
John Shahid e131fbc777 Parse big int in query's where clause properly
Fix #964
2014-09-24 18:06:03 -04:00
David Norton e796eea997 Add a test for #939 2014-09-24 18:06:03 -04:00
David Norton a649f6b623 Refactor the integration tests
Conflicts:
	integration/data_test.go
2014-09-24 18:06:03 -04:00
David Norton 26a71ad9a6 Refactor data_test.go to use Test* function names
Refactor integration/data_test.go to use Test* names for the tests
and remove the TestAll test case, which uses reflection to iterate
over all test functions.  Also, change the two SingleServerSuite
test functions in this file to DataTestSuite functions.

The DataTestSuite now conforms to standard Go / gocheck test
conventions.  Individual tests can be run.  Groups of tests can be
run by specifying patterns.  E.g.,

make integraton_test only=DataTestSuite

...will run all tests in data_test.go.  Or,

make integration_test only=DataTestSuite.Test.*Histogram

...will run all histogram related tests.

See the gocheck documentation for further details.

Conflicts:
	integration/data_test.go
2014-09-24 18:06:03 -04:00
David Norton 2482f69d31 Fix #780 so that fill works with all aggregates
Conflicts:
	engine/aggregator.go
	integration/data_test.go
2014-09-24 17:49:43 -04:00
John Shahid e816973bf6 Don't panic on invalid boolean operators
Close #714
2014-09-24 17:40:29 -04:00
John Shahid b7a145e717 Fix case insensitive regex matching
Close #794

Conflicts:
	integration/data_test.go
2014-09-24 17:40:29 -04:00
John Shahid 42bef2508c Return an error if an invalid column is used to filter after a join
Fix #652
2014-09-24 17:40:29 -04:00
John Shahid de68a3877b Parse big int in query's where clause properly
Fix #964
2014-09-23 11:46:14 -04:00
David Norton 3497cffd21 Add a test for #939 2014-09-22 16:50:58 -04:00
David Norton a7fbbe08e8 Refactor the integration tests 2014-09-22 16:50:58 -04:00
John Shahid 4b92d96cb4 Merge remote-tracking branch 'refs/remotes/origin/pr/920'
Conflicts:
	integration/data_test.go
2014-09-12 13:14:33 -04:00
David Norton e310d10b5f Refactor data_test.go to use Test* function names
Refactor integration/data_test.go to use Test* names for the tests
and remove the TestAll test case, which uses reflection to iterate
over all test functions.  Also, change the two SingleServerSuite
test functions in this file to DataTestSuite functions.

The DataTestSuite now conforms to standard Go / gocheck test
conventions.  Individual tests can be run.  Groups of tests can be
run by specifying patterns.  E.g.,

make integraton_test only=DataTestSuite

...will run all tests in data_test.go.  Or,

make integration_test only=DataTestSuite.Test.*Histogram

...will run all histogram related tests.

See the gocheck documentation for further details.
2014-09-12 00:13:41 -04:00
David Norton 08fb0c5997 Fix #780 so that fill works with all aggregates 2014-09-12 00:12:40 -04:00
John Shahid 5669346054 cleanup the storage keys and point iteration in the shard's code 2014-09-10 14:08:07 -04:00
David Norton 3556fb6b51 Refactor TestAll test loop in data_test.go
Combine the three separate loops for DB creation, running setup
functions, and running tests into one loop.  Add a DB delete at the
end of each test for cleanup.

This groups output for each test together in one place.  It also has
the advantage of not running all DB creations and setup functions until
they're needed.
2014-09-10 06:24:11 -04:00
Nathaniel Cook c8c40097c6 Making histogram alignment easier to control
Fix #669
2014-09-08 15:37:20 -04:00
John Shahid b9571f4ff3 Fix a merge conflict introduced earlier 2014-09-08 14:40:50 -04:00
John Shahid 39583a0f67 Fix minus operator without surrounding spaces
Close #768

This patch isn't backward compatible since older version allowed the use
of table names with '-' without enclosing them. With this change, '-'
characters are disallowed completely unless they were enclosed in double
quotes. The parser can be made more complicated and be more context
aware to distinguish the use of the '-' character depending on the query
being parser, but I think the approach in this patch is simpler and less
confusing from the user's point of view.
2014-09-08 14:37:34 -04:00
John Shahid 71ccbdc99c Don't panic on invalid boolean operators
Close #714
2014-09-08 14:35:31 -04:00
John Shahid e1bb3be735 Fix case insensitive regex matching
Close #794
2014-09-08 14:04:12 -04:00
John Shahid 3c9b39ce01 Return an error if an invalid column is used to filter after a join
Fix #652
2014-09-04 12:35:07 -04:00
John Shahid ecf30b062a Get rid of the explain query tests 2014-09-03 15:10:43 -04:00
John Shahid 4383375fe8 Split the different engines in their own types 2014-09-03 15:10:43 -04:00
John Shahid bc8b068106 Remove some printfs in the test 2014-08-13 15:23:27 -04:00
John Shahid d3e27e8ce5 Fix a typo 2014-08-07 15:22:05 -04:00
John Shahid 680e6d96bc Always fill empty groups if the start time is specified.
Prior to this change, empty group filling worked between t1 and t2,
where t1 is the timestamp of the earliest point and t2 is the timestamp
of the last point. This patch change the behavior of the fill() to use
the query start and end time as t1 and t2, respectively. This only
happens if the user specified the start time of the query. Otherwise,
there's a potential of filling millions of millions of groups, since the
default start time of the query is really really early.
2014-08-06 16:03:29 -04:00
John Shahid 72fccdab6f Don't emit non existent fields when joining
Points in the joined series should have either the columns of the left
side or the columns of the right side of the join. Before this patch
join relied on merge to order the points of the two series and then join
consecutive points together. The merge emitted the union of the columns
of the two series, which caused the joined series to always have the
union of two series. This combined with the fact that the point's values
weren't adjusted to have nulls for the missing columns caused panic when
any operation is done on the points, e.g. addition.

Fix #740, Fix #781
2014-07-30 14:06:47 -04:00
John Shahid 673a12257b Dry the fill() tests 2014-07-22 15:26:17 -04:00
Philip O'Toole c1e285383b Allow 'null' to be supplied as fill value
Add to unit tests to test fill, including new "null" support.

Fix #713.
2014-07-22 15:07:11 -04:00
John Shahid 62857570a9 Use influxdb/influxdb/client instead of influxdb/influxdb-go 2014-07-14 19:20:30 -04:00
John Shahid 39ea797dcd Fix #690. Use idiomatic go project structure
Conflicts:
	cluster/cluster_configuration.go
	cluster/shard.go
	coordinator/command.go
	coordinator/coordinator_test.go
	coordinator/raft_server.go
	daemon/influxd.go
	datastore/shard.go
	integration/single_server_test.go
	parser/query_spec.go
	server/server.go
2014-07-14 18:47:37 -04:00
John Shahid e5276112c1 Restructure the codebase to be more idiomatic 2014-06-30 11:31:08 -04:00