Philip O'Toole
f404a8ac31
Merge pull request #3365 from influxdb/fix/parser/require_regex_after_regex_operator
...
Require a regex after a regex operator when parsing.
2015-07-17 11:05:00 -07:00
Robert Nubel
930a1aa523
Require a regex after a regex operator when parsing.
...
Previously, parseRegex could return an empty RegexLiteral
and the expression parser would put that into the right-hand
side of the expression, causing a nil-pointer panic when
the query was later executed. This change adds a check at
the parsing level and returns an error message if a regex
operator (e.g. =~) is not followed by an actual regex.
2015-07-17 11:02:45 -07:00
Philip O'Toole
8ad0aab5e3
Merge pull request #3364 from influxdb/use-with-semicolon
...
Allow semicolons to trail database names in "use"
2015-07-17 10:59:01 -07:00
Philip O'Toole
62f0399645
Add another "use;" unit test
2015-07-17 10:57:01 -07:00
Timothy Raymond
90f6725da1
Update CHANGELOG
2015-07-17 10:54:27 -07:00
Timothy Raymond
21582ad0d6
Allow semicolons to trail database names in "use"
...
Prior to this commit, the "use" command treated trailing semicolons as
significant parts of the database name. This lead to a confusing user
experience since other parts of influxql treat the trailing semicolon as
a statement separator, or appear to ignore it. A typical use case looks
something like:
> show databases;
-- snip --
> use foo;
This commit trims off trailing semicolons from database names in "use"
commands if present to match user expectations.
Fixes #2258
2015-07-17 10:54:07 -07:00
Philip O'Toole
3e1b0fed78
Merge pull request #3345 from influxdb/ga-show-rp-syntax
...
Make `SHOW RETENTION POLICIES` consistent by requiring `ON`
2015-07-17 10:46:24 -07:00
Philip O'Toole
f73e80b8d1
Merge pull request #3359 from influxdb/single_mapper_output_type
...
One mapperOutput type to rule them all
2015-07-17 08:31:42 -07:00
Philip O'Toole
23b95bf939
Add comment re the complex mapperOutput type
2015-07-17 08:27:53 -07:00
Philip O'Toole
b5984a7032
There is now a single StatefulMapper
2015-07-17 08:27:53 -07:00
Philip O'Toole
5f357020c6
It's not raw or aggregate, it's just "mapper"
2015-07-17 08:27:49 -07:00
Philip O'Toole
56b61beff9
Remove aggMapperOutput type
...
It's identical to rawMapperOutput type.
2015-07-17 08:23:36 -07:00
Philip O'Toole
12f50eba04
Remove aggMapperValue type
...
Identical to rawMapperValue type.
2015-07-17 08:23:36 -07:00
Philip O'Toole
dc0aadf3b0
aggMapperValue is the same as rawMapperValue
2015-07-17 08:23:36 -07:00
Philip O'Toole
134ab87a49
Store a []interface{} in an interface{}
...
This is really pushing the type system, but needs to be done to cleanly
combine the raw and aggregate output mapper types.
2015-07-17 08:23:36 -07:00
Philip O'Toole
4601e5bebe
Merge pull request #3361 from influxdb/raw_derivate_check
...
Correctly check if raw derivative is required
2015-07-17 08:23:07 -07:00
Philip O'Toole
0d6c6bbe6f
Correctly check if raw derivative is required
...
The multiple checks for Mapper and Executor type -- the lack of DRYness
in this code -- meant the same checks would need to be copied. Therefore
this change, as well as fixing the bug, improves the situation a little
bit by *asking* the Mappers what type of Executor is required. This code
is still not ideal.
Fixes #3355 .
2015-07-16 23:28:38 -07:00
Philip O'Toole
dfdffb6401
Merge pull request #3360 from influxdb/Name_to_name
...
Correct JSON tag name
2015-07-16 21:41:57 -07:00
Philip O'Toole
a1ac8e49cc
Correct JSON tag name
2015-07-16 21:39:43 -07:00
Philip O'Toole
6402079808
Merge pull request #3352 from influxdb/hook_up_meta
...
Correctly hook up RemoteMapper's MetaStore
2015-07-16 14:02:49 -07:00
Philip O'Toole
2dc8bb947e
Correctly hook up RemoteMapper's MetaStore
2015-07-16 14:00:10 -07:00
gunnaraasen
55434fa8b7
Update CHANGELOG
2015-07-16 13:45:50 -07:00
gunnaraasen
ee8ba11c4f
Add ON token to SHOW RETENTION POLICIES parser with tests
2015-07-16 13:45:50 -07:00
Philip O'Toole
f8d96b039d
Merge pull request #3350 from influxdb/delimit_measurement
...
Delimit measurement name for Mapper tagsets
2015-07-16 13:32:36 -07:00
Philip O'Toole
3ddff9114d
Delimit measurement name for Mapper tagsets
2015-07-16 13:28:49 -07:00
Philip O'Toole
5a311e6cc0
Update CHANGELOG for PR 3334
...
[ci skip]
2015-07-16 13:01:27 -07:00
Philip O'Toole
bd2f475b5d
Merge pull request #3334 from mcastilho/master
...
Clean shutdown of influxd server
2015-07-16 13:00:13 -07:00
Philip O'Toole
d8c31f0b3c
Merge pull request #3320 from influxdb/streaming_dq
...
Support Distributed Queries
2015-07-16 12:33:21 -07:00
Philip O'Toole
16250c5976
More replacement of "now" to outside loop
2015-07-16 12:19:46 -07:00
Philip O'Toole
6131983f83
More unit tests of tagset ordering across Mappers
2015-07-16 11:42:08 -07:00
Philip O'Toole
c468a65bd2
Actually check tagset when looking for lowest time
2015-07-16 11:33:09 -07:00
Philip O'Toole
76d5b7085e
Add engine unit tests
2015-07-15 22:28:41 -07:00
Philip O'Toole
2d162acb53
Rename query_engine.go to engine.go
...
The functionality in this file is more like the older file, so a rename
makes sense.
2015-07-15 22:06:08 -07:00
Philip O'Toole
284a9ac0ff
Add RemoteMapper implementation
2015-07-15 21:57:23 -07:00
Philip O'Toole
e254245f2f
Implement simple remote node choice policy
2015-07-15 19:53:10 -07:00
Philip O'Toole
f41d2bab5d
Start move to unified query executor
2015-07-15 19:31:13 -07:00
Philip O'Toole
a0dba108a0
Unit test shard mapper handler error handling
2015-07-15 16:08:26 -07:00
Philip O'Toole
65a580779b
Shard mapping handler returns on errors
2015-07-15 16:08:10 -07:00
Philip O'Toole
4c8f1a59d3
Merge pull request #3340 from jhorwit2/jah/patch-3
...
Fixed flush interval & flush delay parameters
2015-07-15 14:12:53 -07:00
Josh Horwitz
4529af1afd
Fixed flush interval & flush delay parameters
2015-07-15 16:59:07 -04:00
Philip O'Toole
7bdba556a1
Support pretty printing shard mapping
2015-07-15 13:06:16 -07:00
Philip O'Toole
74cb96646c
Refactor query engine for distributed query support
...
With this change, the query engine code gathers information about
shards and tagsets by working with individual shards, collating the
information, and returning that to the client. It does not assume that any
particular shard is local, and accesses all shards through abstracted
Mappers, of which there are two types -- a Mapper type for Raw queries
and a second type for Aggregate queries. There are corresponding
Executors for each type of Mapper, but both types of Executors share the
same interface.
2015-07-15 12:54:55 -07:00
Philip O'Toole
a3557d52c8
Credit for PR 3335
...
[ci skip]
2015-07-15 11:33:40 -07:00
Philip O'Toole
9f09b402dc
Merge pull request #3335 from influxdb/drop_db_all
...
Form database path correctly on DROP DATABASE
2015-07-15 11:32:20 -07:00
Philip O'Toole
21ea87432c
Test that DROP DATABASE is isolated
2015-07-15 11:20:25 -07:00
Philip O'Toole
09d7dfbaae
Form database path correctly on DROP DATABASE
...
Fixes #3330
2015-07-15 11:14:49 -07:00
Marcio Castilho
e560eb19ee
Clean shutdown of influxd server
2015-07-15 13:14:11 -04:00
Philip O'Toole
b7f48a709d
Merge pull request #3332 from influxdb/add_slimit_soffset
...
Add SLIMIT and SOFFSET to string version of AST
2015-07-15 09:56:52 -07:00
Philip O'Toole
c54018a083
Update CHANGELOG
2015-07-15 09:43:27 -07:00
Philip O'Toole
3967ec02d0
Add SLIMIT and SOFFSET to string version of AST
2015-07-15 09:43:24 -07:00