Adam Perlin
840077ca62
Encoding Error Tests ( #653 )
...
* Add tests for CSV encoding errors
* Update encoder error checking to use behavior pattern
2018-08-17 13:16:41 -07:00
Adam Perlin
4d9c6c4c39
Add errors as expected output in test framework ( #627 )
...
* Add expected error functionality to test framework; Add EncoderError
type to differentiate between encoding and execution errors
2018-08-16 12:01:20 -07:00
Jonathan A. Sternberg
73b4b1d0d8
docs(query): add package docs for the packages in the query package
2018-08-13 15:21:02 -05:00
Nathaniel Cook
7902652290
chore: Rename local vars for b to tbl
2018-07-13 10:04:38 -06:00
Nathaniel Cook
80acc8d8c4
chore: Rename block to table
2018-07-13 09:56:35 -06:00
Nathaniel Cook
e4848caa25
chore: Rename parition key to group key
2018-07-12 16:16:58 -06:00
Nathaniel Cook
f128074458
feat(query): Change Encode interface to return bytes written
2018-06-27 10:31:04 -06:00
Nathaniel Cook
360c6a3ea3
fix(query/csv): Fix EOF causing error
...
An EOF should not be reported as an error but as an indication that no
more data is available.
2018-05-30 13:55:24 -06:00
Jonathan A. Sternberg
911f053dd6
fix(http): keep the http response body open until the result has been read
...
This modifies the `MultiResultDecoder` interface to accept an
`io.ReadCloser` so the `ResultIterator` can close the `io.Reader`
instead of doing it through a defer call. It then makes it so the
`Cancel()` method will close the reader or the reader will be
automatically closed when `More()` returns false.
2018-05-25 15:03:52 -05:00
Jonathan A. Sternberg
c1ff42857c
Merge pull request #50 from influxdata/js-csv-decoder-fix
...
fix(query/csv): the csv decoder should return false from More() if an error happens
2018-05-25 12:45:09 -05:00
Jonathan A. Sternberg
1cf63b1070
fix(query/csv): the csv decoder should return false from More() if an error happens
2018-05-25 12:42:39 -05:00
Nathaniel Cook
44ea17cab3
feat(query/functions/map): Add mergeKey argument to map
...
In order to facilitate this change the query.PartitionKey
interface was changed to use the values.Value interface.
Additionally map was previously broken when it needed to repartition.
Tests have been added.
2018-05-25 11:08:31 -06:00
Nathaniel Cook
99f4e4a8b4
fix(query/csv): Encode result iterator errors
...
This change also adds Name() to the Result interface to allow for
correct MultiResultEncoding.
2018-05-24 16:38:50 -06:00
Jonathan A. Sternberg
e18879370b
feat(http): perform error handling in the transpiler and the query service
...
The query service now handles some errors (not all) from the ifqld
service. This way, the transpiler, which uses the query service, can
report when it encounters an error from ifqld.
The transpiler will now correctly return errors in the JSON response.
2018-05-24 17:14:16 -05:00
Nathaniel Cook
8c6726cad2
fix(query): Add Empty to blocks
...
Using Empty the csv encoder can now correctly encode empty blocks.
2018-05-24 10:16:36 -06:00
Nathaniel Cook
affc7e3976
move types around to avoid cyclic imports
2018-05-21 17:02:42 -06:00
Nathaniel Cook
20345b8701
rewrite imports
2018-05-21 15:20:06 -06:00
Nathaniel Cook
1833601dbb
fix(query/csv): update CSV encoders/decoders for final SPEC
2018-05-18 16:54:25 -06:00
Adam
64e3c840ea
Relocated several source files from private repo to here.
2018-05-17 11:35:53 -04:00