Commit Graph

738 Commits (feb41819ec33145b2f246ba3deaab992445d025f)

Author SHA1 Message Date
Nathaniel Cook 27b472a681 Merged pull request #70 from influxdata/nc-window
fix(query/functions/window): Fix window asignment bug
2018-05-30 10:25:03 -06:00
Nathaniel Cook cbd219941a feat(query/functions/limit): Add offset to limit functions 2018-05-30 10:19:39 -06:00
Nathaniel Cook c583a23f6c fix(query): Tables are sorted by Partition Key 2018-05-29 16:41:46 -06:00
Nathaniel Cook ffa065abc2 fix(query/functions/window): Fix window asignment bug 2018-05-29 14:54:16 -06:00
Stuart Carnie bd7c237aa5
Merge pull request #69 from influxdata/sgc-metaqueries
chore(storage): Update RPC protobuf definitions
2018-05-29 11:00:38 -07:00
Stuart Carnie d7db5f3218 chore(storage): Update RPC protobuf 2018-05-29 10:50:51 -07:00
Jonathan A. Sternberg 8dad62bbbf
Merge pull request #55 from influxdata/js-multi-result-encoder-close
fix(http): keep the http response body open until the result has been read
2018-05-29 10:10:11 -05:00
j. Emrys Landivar (docmerlin) 97652242e8 Remove commented-out code 2018-05-29 09:53:56 -05:00
j. Emrys Landivar (docmerlin) fce46a3cbd a toKafka function 2018-05-28 02:33:40 -05:00
Nathaniel Cook 15a801e9a2 fix(query): Fix default group mode 2018-05-25 15:16:11 -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
Nathaniel Cook cf7d3c1864 fix(query/querytest): Use t.Run to give tests clear names 2018-05-25 13:18:02 -06:00
Adam c5e0477b74
feat(query/querytest): test framework improvements to help generate output (#51)
updated helper program so users can now start with a .in.csv file, and a .ifql file, and
generate output.  program asks user to verify output before writing.  Also refactored the
location of test files from query_test  to querytest and put helper functions in new file
querytest/execute.go.
2018-05-25 14:38:50 -04: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 ea6e96bd09
Merge pull request #32 from influxdata/js-transpiler-error-handling
feat(http): perform error handling in the transpiler and the query service
2018-05-24 17:18:01 -05: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
Stuart Carnie 11004024cb
Merge pull request #43 from influxdata/sgc-metaqueries
fix(query): Utilize improvements storage RPC API
2018-05-24 15:11:00 -07:00
Jonathan A. Sternberg 174ce83f5d feat(query/influxql): use yield name to specify the statement id
The transpiler will now yield each statement using the statement id so
the result encoder can properly order the results and encode the
statement id. This behavior is now in the transpiler spec.
2018-05-24 16:33:51 -05:00
Stuart Carnie 6e12d6634d fix(query): Utilize improvements storage RPC API
* clarifies grouping behavior in data types, matching RPC
2018-05-24 12:14:47 -07:00
Nathaniel Cook 60618ad521 Merged pull request #34 from influxdata/nc-ifql-format-col-order
fix(query/execute): Update formatted sort order of cols
2018-05-24 12:19:44 -06: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
Adam 5705f33f55
feat(cmd/ifqld): enforce fixed ordering on results iterator (#39)
sort hash keys in the partition_lookup.Range() function so that returned results are in a deterministic, though arbitrary, order.
2018-05-24 10:59:37 -04:00
Nathaniel Cook afa2aef16f fix(query/execute): Update formatted sort order of cols
Now columns are ordered the same as the partition key.
2018-05-23 11:12:59 -06:00
j. Emrys Landivar (docmerlin) b08e61bb55 addr -> url 2018-05-23 03:27:08 -05:00
j. Emrys Landivar (docmerlin) e11c351853 make sure we are done processsing block before process exits 2018-05-23 00:41:24 -05:00
j. Emrys Landivar (docmerlin) 32118f36c7 toHTTP function moved from github.com/influxdata/ifql PR 362 2018-05-23 00:28:44 -05:00
Adam 1495b7291a feat(cmd/ifqld): fromCSV reads files now
extended fromCSV to have an optional file:  parameter so that larger blocks of text can be given by filename instead of a blob of text
2018-05-22 16:56:27 -04:00
Nathaniel Cook c8ff490338 chore: Add Makefile 2018-05-22 14:45:23 -06:00
Nathaniel Cook 0e2c213517 fix(query): Add _stop, _start to partition key 2018-05-22 12:59:07 -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 51b8aebebf initial copy of ifql repo 2018-05-21 15:18:56 -06:00
Nathaniel Cook c0b01f16f8 update transpiler and influxql encoders 2018-05-19 15:28:37 -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