Nathaniel Cook
5e30d7cdd6
chore(query/builtin): Add package to formalize query builtin initialization
...
Now all packages wishing to consume query package can and must import
query/builtin in order to properly initialize all builtin values.
2018-05-31 12:03:49 -06:00
Jonathan A. Sternberg
9aa68c00a6
Merge pull request #92 from influxdata/js-readd-group-to-transpiler
...
fix(query/influxql): add group spec back to the transpiler
2018-05-31 12:22:19 -05:00
Adam
3faef7dfa9
fix CSV parameter validation so it only checks for file existence when required ( #89 )
...
* fix(query/functions/): fromCSV bugfix in parameter validation
* fix(query/functions): add from_csv_test.go
2018-05-31 12:59:45 -04:00
Jonathan A. Sternberg
ea1809c0bf
fix(query/influxql): add group spec back to the transpiler
...
The latest version of influxdb has fixed whatever was wrong with the
group function so this works properly again.
2018-05-31 11:43:58 -05:00
Jonathan A. Sternberg
a44374a0c5
feat(query/influxql): encode influxql json results correctly
...
This fixes the encoder so that it will encode the response correctly to
a JSON blob using the outputs of the transpiler. The transpiler has also
been modified to pass through the correct values so the map function is
correctly constructed and the aggregate function is also correctly
constructed.
This removes the group function temporarily because it does not seem to
be working.
2018-05-31 11:07:27 -05:00
Nathaniel Cook
5ed7693d7f
Merged pull request #82 from influxdata/nc-csv-decode-eof
...
fix(query/csv): Fix EOF causing error
2018-05-30 14:01:00 -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
Andrew Watkins
9afc795845
Merge pull request #80 from influxdata/chrongraf/default-completer
...
Add deleted code required for Chronograf API
2018-05-30 12:08:36 -07:00
Andrew Watkins
fa40f46be7
Remove deleted code required for Chronograf api
2018-05-30 12:05:44 -07:00
Nathaniel Cook
00da26963c
Merged pull request #74 from influxdata/nc-limit-offset
...
feat(query/functions/limit): Add offset to limit functions
2018-05-30 12:44:36 -06:00
Nathaniel Cook
3a6c1024b0
Merged pull request #66 from influxdata/nc-table-sort
...
fix(query): Tables are sorted by Partition Key
2018-05-30 12:42:56 -06:00
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