Philip O'Toole
501b4ceedb
Don't panic if presented with a field of unknown type
...
This can happen, though is very unlikely. If this node receives encoded
data, to be written to disk, and is queried for that data before its
metastore is updated, there will be no field mapping for the data during
decode. All this can happen because data is encoded by the node that first
received the write request, not the node that actually writes the data to
disk. So if this happens, skip the data.
2015-04-04 10:33:56 -07:00
Philip O'Toole
aaecda0c8e
Remove redundant if condition
2015-03-31 16:38:48 -07:00
Philip O'Toole
a7d904778a
Correctly filter series for NEQREGEX
...
Series that do not have any tags are considered matching in the NEQREGEX
case so the must be explicitly added.
2015-03-31 16:14:30 -07:00
Philip O'Toole
70d57d399d
Check if the tag filter is a NOT
...
If so, then return all series IDs which do not match.
Fix for issue #2097
2015-03-31 16:14:30 -07:00
Ben Johnson
04a475cdb2
Optimize marshalTags().
...
This commit optimizes the marshaling of tag sets. Previously the
strings.Join() function was used with added a lot of memory allocations.
The new implementation manually allocates and appends to a byte slice.
Previous implementation:
$ go test -run=^\$ -bench=BenchmarkMarshalTags -v
PASS
BenchmarkMarshalTags_KeyN1 2000000 824 ns/op 176 B/op 6 allocs/op
BenchmarkMarshalTags_KeyN3 1000000 1319 ns/op 416 B/op 6 allocs/op
BenchmarkMarshalTags_KeyN5 1000000 2173 ns/op 656 B/op 6 allocs/op
BenchmarkMarshalTags_KeyN10 500000 3929 ns/op 1280 B/op 6 allocs/op
New implementation:
$ go test -run=^\$ -bench=BenchmarkMarshalTags -v
PASS
BenchmarkMarshalTags_KeyN1 3000000 458 ns/op 80 B/op 3 allocs/op
BenchmarkMarshalTags_KeyN3 2000000 753 ns/op 160 B/op 3 allocs/op
BenchmarkMarshalTags_KeyN5 1000000 1193 ns/op 240 B/op 3 allocs/op
BenchmarkMarshalTags_KeyN10 500000 2477 ns/op 448 B/op 3 allocs/op
2015-03-31 16:55:42 -06:00
Julius Volz
690f6f16c0
Fix all "golint" warnings in top-level package.
...
This fixes all "golint" warnings in the top-level "influxdb" package:
database.go:316:2: can probably use "var tagStrings []string" instead
database.go:1077:6: exported type RetentionPolicies should have comment or be unexported
server.go:337:1: exported method Server.StartSelfMonitoring should have comment or be unexported
server.go:345:3: can probably use "var points []Point" instead
server.go:433:2: can probably use "var groups []group" instead
server.go:498:2: can probably use "var groups []group" instead
server.go:1417:1: comment on exported method Server.CreateRetentionPolicyIfNotExists should be of the form "CreateRetentionPolicyIfNotExists ..."
server.go:1899:1: exported method Server.DropMeasurement should have comment or be unexported
server.go:2153:10: if block ends with a return statement, so drop this else and outdent its block
server.go:2695:2: can probably use "var rows []*influxql.Row" instead
server.go:2876:11: if block ends with a return statement, so drop this else and outdent its block
server.go:3804:1: exported method Server.StartReportingLoop should have comment or be unexported
tx.go:133:4: can probably use "var mappers []influxql.Mapper" instead
tx.go:231:1: exported method LocalMapper.Open should have comment or be unexported
tx.go:254:1: exported method LocalMapper.Close should have comment or be unexported
tx.go:348:1: exported method LocalMapper.Next should have comment or be unexported
2015-03-31 02:22:45 +02:00
Philip O'Toole
3a5baff88d
Avoid multi-line if with a switch
2015-03-27 23:07:57 -07:00
Philip O'Toole
1b700264a7
Also include NEQ in filters
...
This fixes != for field value comparisons.
2015-03-27 23:07:57 -07:00
Philip O'Toole
51e98b85ef
Support sorting of retention policies
...
Sort them by name.
2015-03-23 17:27:15 -07:00
Todd Persen
4ee1216052
Merge pull request #1978 from influxdb/fix-1832
...
fix #1832 : support regex in FROM clause
2015-03-18 11:20:30 -07:00
Cory LaNou
dc1a103ec9
Drop measurement was taking to long due to transactions
2015-03-17 11:44:08 -06:00
David Norton
62ae32b0ce
wire up regex in FROM clause
2015-03-16 19:40:59 -04:00
Cory LaNou
436d20fec1
Merge pull request #1897 from influxdb/proactively-create-shard-groups
...
Pre-create shard groups
2015-03-09 20:03:12 -06:00
Cory LaNou
686d6b9bfe
split is now dynamically calculated
2015-03-09 18:58:31 -06:00
Paul Dix
cf060e064a
Fix build error after merge
2015-03-09 17:25:02 -07:00
Paul Dix
acb75b9967
Merge pull request #1892 from influxdb/fix-raw-ordering-filters
...
avoid unnecessary call to walkWhereForSeriesIds
2015-03-09 17:14:02 -07:00
Paul Dix
3628fbe7cd
Updates based on PR feedback
2015-03-09 16:32:55 -07:00
Cory LaNou
67f03ef26b
Pre-create shard groups
...
1) Pre create shard groups
2) Calculate and save the ShardGroupDuration for Retention Policies. This should never change even if they alter a retention policy in the future
2015-03-09 17:30:17 -06:00
Paul Dix
b173e6a380
Fix bug with where clauses on tags, time, and fields
2015-03-09 16:00:20 -07:00
David Norton
de852c8e63
avoid unnecessary call to walkWhereForSeriesIds
2015-03-09 15:49:13 -04:00
Paul Dix
08ecaabc16
Fix decodes on multiple fields. Remove debug info. Update tests to match new query engine output.
2015-03-09 11:17:36 -07:00
Paul Dix
93f3a229c6
Fix merge conflicts
2015-03-06 16:30:26 -08:00
Paul Dix
df3c0099e1
WIP: wire up raw queries
2015-03-06 11:23:58 -08:00
Philip O'Toole
bf55c0fc23
Explain what zero duration means for retention
2015-03-05 15:30:04 -08:00
Philip O'Toole
f0c7a6b7e7
Check for LT, LTE, GT, GTE
...
Add relevant unit tests
2015-03-02 18:30:48 -08:00
Philip O'Toole
8196a49308
Condition is set, tests still fail
2015-03-02 15:15:58 -08:00
Paul Dix
74e6f1f4db
WIP: query language refactoring compiles. mores soon
2015-03-01 22:37:09 -08:00
David Norton
0d4a8dcc2b
fix #1764 : panic index out of range
2015-02-27 11:53:02 -05:00
Cory LaNou
234a04553d
adding better error message to return
2015-02-26 17:10:09 -07:00
Joseph Rothrock
f44f707237
moved Trim()
...
Issue: 1729
Moved strings.Trim down to the for loop that iterates
over tag keys.
2015-02-26 13:33:28 -08:00
Joseph Rothrock
661482937f
Support keys wrapped in dbl quotes
...
Issue: 1729
Trim off any leading or lagging dbl quotes.
2015-02-26 12:40:30 -08:00
Cory LaNou
b49a1ab3c5
clarify comments
2015-02-25 12:55:58 -07:00
Cory LaNou
fb2f7416ed
drop shard data
2015-02-25 12:42:23 -07:00
Cory LaNou
a151fe64d4
deleting data from metastore. wip
2015-02-25 12:42:23 -07:00
Paul Dix
0d05ca3e4e
Merge pull request #1689 from influxdb/show_tag_values
...
Simple change so "SHOW TAG VALUES" is as expected
2015-02-23 23:47:56 -05:00
Philip O'Toole
149015a93c
Remove field value count when writing to disk
...
Fixes issue #1636
2015-02-23 18:58:15 -08:00
Philip O'Toole
86b91ead94
"SHOW TAG VALUES" now outputs series per tag key
...
This change tightens up the type used for "Series" so the pre-existing
sort method can be used.
2015-02-23 17:15:55 -08:00
Paul Dix
89b80dcd66
WIP: insane refactor of engine. Must come back later.
2015-02-23 18:07:01 -05:00
Cory LaNou
c8afd6242a
deleteing a key that does not exist is ok
2015-02-21 22:29:37 -07:00
Cory LaNou
8637a10b6a
start with seriesByMeasurement
2015-02-21 22:18:25 -07:00
Cory LaNou
3e94c14ef2
no need to resort
2015-02-21 21:15:14 -07:00
Cory LaNou
b53d02fc05
delete correct map
2015-02-21 20:20:16 -07:00
Cory LaNou
5df9726c3b
fix deleting from crazy map
2015-02-21 17:21:27 -07:00
Cory LaNou
2752ada587
moving more responsibility to database.dropSeries
2015-02-21 17:21:27 -07:00
Cory LaNou
6114c8138e
refactoring drop series
2015-02-21 17:21:27 -07:00
Cory LaNou
5ab3731159
delete -> drop for series naming
2015-02-21 17:18:50 -07:00
Cory LaNou
4948b62784
first working version of drop series. more testing to come
2015-02-21 17:10:11 -07:00
Cory LaNou
6d5be3da25
wip. compiles now. tests next
2015-02-21 17:10:11 -07:00
David Norton
9bff9cdeee
issue #1431 : wire up regex queries
2015-02-21 15:38:35 -05:00
Philip O'Toole
4c28e63a93
Restore helpful field type conflict error message
2015-02-20 11:28:07 -08:00