Commit Graph

31 Commits (v0.8.9)

Author SHA1 Message Date
John Shahid 4a3a286f2e Check for valgrind and mercurial
If valgrind isn't found, `make valgrind` will be disabled. Otherwise it
will run valgrind to make sure the parser doesn't leak any memory. If
mercurial isn't found an error will be displayed and configure will
abort.

Close #978
2014-11-05 18:49:49 -05:00
John Shahid 9507b187f1 Don't emit the time condition for single point queries
Close #925
2014-11-05 18:35:44 -05:00
John Shahid 3a857296f4 Support joining multiple series using regex or list 2014-10-31 14:49:48 -04:00
John Shahid c0ad5d5104 Rename some constants
(from_clause.go,query.yacc,query_types.h): FROM_INNER_JOIN -> FROM_JOIN
2014-10-31 14:01:17 -04:00
John Shahid b00b853c28 add a test to make sure merge cannot be used with multiple regexes 2014-10-22 18:16:26 -04:00
John Shahid 3300b3434f Support merge with a list of series names 2014-10-22 18:05:25 -04:00
John Shahid 6802eda768 Rename MergeFun to MergeRegex 2014-10-22 17:58:04 -04:00
John Shahid 4fbe259722 add some docs 2014-10-22 16:46:12 -04:00
John Shahid cace54d8c8 Make sure the query string has valid regex and add a test 2014-10-22 16:41:08 -04:00
John Shahid d3b6c1b010 FromClause.GetString() shouldn't assume 2 series in the merge
Fix #1047
2014-10-22 15:22:59 -04:00
John Shahid 465614c173 Modify merge to work with regex 2014-10-21 17:57:13 -04:00
John Shahid 8692780bf4 Some refactoring 2014-10-20 15:24:39 -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 4c655ddc3d fixup! Querying for data outside of existing shards should return an empty response. 2014-10-15 12:27:15 -04:00
John Shahid 1baa0b7962 Fix a bug introduced in 25cc9793c2 2014-09-17 16:35:21 -04:00
John Shahid 25cc9793c2 Use double quotes in GetQueryString()
Fix #923
2014-09-12 11:09:51 -04:00
Paul Dix f0c0abdb10 Add option to include space to series mappings in list series query.
Fixes #867. Close #927. Updated lexer and parser to work, added code to
coordinator to insert spaces if requested. Now the user can request the
shard spaces. `list series include spaces`
2014-09-11 11:28:18 -04:00
John Shahid e8d83e5ae3 Let time.Unix() do the work for us 2014-09-10 15:15:56 -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
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 2c55e04188 Move things around 2014-09-03 15:10:43 -04:00
John Shahid 4fa4f9e54f Fix parsing of multiple queries
Fix #885
2014-09-03 15:10:42 -04:00
John Shahid 9c811a1761 Some cleanup 2014-09-03 15:10:42 -04:00
John Shahid 335dec7ac5 Remove an unused rule in the lexer 2014-08-13 15:23:27 -04:00
John Shahid 49122da251 List series should support filtering by a regex 2014-08-11 16:59:11 -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 22cb673771 Fix the build on go1.3
There was one remaining reference to an incomplete struct type from c
which is value_array. The error printed by the compiler is intermittent,
meaning it compiles sometimes and print the error sometimes. Also,
value_array isn't strictly an incomplete data type since it contains a
pointer to an unknown data type but it's size could be computed.
2014-07-29 12:55:52 -04:00
John Shahid e8f750305f use camel casing instead of underscore 2014-07-29 12:21:48 -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 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