Carol (Nichols || Goulding)
a85f0edfc6
feature: Use the new ID type everywhere
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding)
7be1d3437e
feature: Add an ID type that matches the Go code
...
16 character hexadecimal strings to u64s. All zeroes are invalid.
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding)
27bb803ad3
fix: Return HTTP No Content on successful write
...
The `inch` tool expects status code 204 instead of 200, so actually send
no content instead of empty JSON.
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding)
4a0e2cddb9
test: Ensure the parser supports lines with a field but no time
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding)
9296eb4802
feature: If a line has no time, use the current time
2020-04-13 16:40:38 -04:00
Carol (Nichols || Goulding)
0314bc6ba2
fix: Change the default gRPC port to match storectl
...
8082 appears to be the default here:
b304e751e1/cmd/storectl/query/query.go (L56)
2020-04-13 16:03:23 -04:00
Jake Goulding
3484a872eb
Merge pull request #71 from influxdata/compatibility
...
fix: Increase compatibility with the Go line protocol parser
2020-04-13 11:07:19 -04:00
Jake Goulding
d28d7440de
fix: Disallow elements that end with a backslash
2020-04-13 09:46:55 -04:00
Jake Goulding
8dfe58ca25
feat: Allow parsing line protocol without a provided timestamp
2020-04-13 09:46:02 -04:00
Jake Goulding
c29a2b725a
fix: Require at least one field in a field set
2020-04-13 09:41:05 -04:00
Jake Goulding
d7416da962
fix: Do not allow a raw newline in the middle of measurement / tag_set / field_key
2020-04-13 09:41:05 -04:00
Jake Goulding
261528aeab
test: Ensure that we allow newline literals as unknown escapes
2020-04-13 09:41:05 -04:00
Jake Goulding
aff4906a72
fix: Allow multiple whitespace characters between line protocol elements
2020-04-13 09:41:05 -04:00
Jake Goulding
9b9ddc8508
test: ensure that blank and commented lines are ignored
2020-04-13 09:41:04 -04:00
Jake Goulding
91bbfe454e
fix: Remove usage of str::lines as input can contain escaped newlines
2020-04-13 09:41:04 -04:00
Jake Goulding
20badac237
Merge pull request #70 from influxdata/minor-clippy
...
style: Use Vec::new in closures instead of vec!
2020-04-10 16:37:58 -04:00
Jake Goulding
5900111b01
style: Use Vec::new in closures instead of vec!
2020-04-10 15:01:05 -04:00
Jake Goulding
55ca9bc6b0
fix: DRY up repeated varint writing
2020-04-10 11:07:54 -04:00
Jake Goulding
3e268c00c5
fix: shorten summary add methods
2020-04-10 11:07:54 -04:00
Jake Goulding
48f5744f5a
fix: remove manual checks when building new block summaries
2020-04-10 11:07:54 -04:00
Jake Goulding
3fc9c0047d
fix: use stack-allocated array instead of a Vec
2020-04-10 10:16:29 -04:00
Jake Goulding
16be0b1922
fix: Use std instead of core
2020-04-08 17:03:05 -04:00
Jake Goulding
27520b9951
doc: correct typo
2020-04-08 16:41:04 -04:00
Jake Goulding
56d4d7e301
doc: use initial indentation in code fences
2020-04-08 16:39:17 -04:00
Jake Goulding
8a9f768f71
fix: Remove unneeded match and include basic error information
2020-04-08 16:32:00 -04:00
Carol (Nichols || Goulding)
8c323b84be
Merge pull request #59 from influxdata/escaping
...
feat: Support escaping values in the line protocol parser
2020-04-08 14:46:38 -04:00
Jake Goulding
29279d393d
perf: Avoid string allocation when series is in the correct format
...
This increases the performance from 58.194 MiB/s to 126.68 MiB/s
2020-04-08 14:41:42 -04:00
Jake Goulding
93231c64e0
perf: Use a SmallVec for escaped strings and sets of tags and values
...
This increases the performance from 56.531 MiB/s to 58.194 MiB/s.
2020-04-08 14:41:42 -04:00
Jake Goulding
4aa3afb930
perf: Add a benchmark for the line parser
2020-04-08 14:41:17 -04:00
Jake Goulding
6fdd8b1935
refactor: Extract a method to generate the series base name
2020-04-08 14:41:17 -04:00
Jake Goulding
0c7a4a5f81
feat: Handle escaping in the tag key, tag value, and field key
2020-04-08 14:41:17 -04:00
Jake Goulding
8156e24255
feat: Handle escaping in the measurement name
2020-04-08 14:41:17 -04:00
Jake Goulding
1615aec46a
refactor: Use preceded combinator
2020-04-08 14:41:17 -04:00
Carol (Nichols || Goulding)
8635076471
fix: Use write_all to ensure entire buffer is processed
...
write doesn't guarantee the whole buffer gets written and returns the
number of bytes it was able to write; whereas what's desired is
everything gets written and the number of bytes is the total of what
we're asking to write.
2020-04-08 11:18:17 -04:00
Carol (Nichols || Goulding)
2879b6cad7
refactor: Remove some now-unneeded type annotations
2020-04-08 10:55:57 -04:00
Carol (Nichols || Goulding)
051836ee4d
fix: Remove vec allocation where an inline slice will do
2020-04-08 10:33:54 -04:00
Carol (Nichols || Goulding)
aa7ae9adaa
fix: Remove unnecessary casting
...
And replace necessary casting/asserts with conversions that panic if
they fail
2020-04-08 10:31:06 -04:00
Carol (Nichols || Goulding)
a143708321
refactor: Remove unneeded `let _ =`
2020-04-08 10:02:32 -04:00
Carol (Nichols || Goulding)
2a008dc6a7
refactor: Rewrite to not use unwrap
2020-04-08 09:48:38 -04:00
Carol (Nichols || Goulding)
1a6d5c2163
fix: Return a slice of timestamp and values; let caller clone if needed
2020-04-08 09:36:28 -04:00
Carol (Nichols || Goulding)
e4b6100f53
refactor: Use stdlib's `unzip`
2020-04-08 09:33:59 -04:00
Carol (Nichols || Goulding)
367f96981b
fix: Remove unneeded clone
2020-04-08 09:12:40 -04:00
Carol (Nichols || Goulding)
3d97829197
fix: Move dead code allow to be more specific
2020-04-08 09:07:15 -04:00
Carol (Nichols || Goulding)
85e558844c
fix: Only use lifetimes when the type is a reference
2020-04-08 09:07:15 -04:00
Carol (Nichols || Goulding)
47661f93f1
fix: Remove module declaration for module that no longer exists
2020-04-08 09:06:44 -04:00
Carol (Nichols || Goulding)
4ee29db95c
docs: Small grammar/style fixes in doc comments I noticed while reading through
2020-04-08 08:45:31 -04:00
Carol (Nichols || Goulding)
14369ae2ab
style: Wrap doc comments to 100 for ease of reading
2020-04-08 08:45:31 -04:00
Edd Robinson
9e20743b2c
feat: add Block Type
...
This commit adds a new Block type, which is used to keep track of values
associated with individual block, and then serialise them.
2020-04-08 13:37:48 +01:00
Carol (Nichols || Goulding)
e60ae51c91
Merge pull request #60 from influxdata/cn-remove-dead-code
...
refactor: Remove code that's now unused
2020-04-06 17:00:56 -04:00
Carol (Nichols || Goulding)
3ee7ba460d
Merge pull request #63 from influxdata/cn-read-group-take-3
...
feature: Implement ReadGroup gRPC
2020-04-06 17:00:33 -04:00