Commit Graph

306 Commits (80acc8d8c412a7623ba5a9d76bae4dfc1604d814)

Author SHA1 Message Date
Nathaniel Cook c2c9e10059 chore(cmd/transpilerd): Add transpilerd to the Makefile 2018-05-30 12:47:10 -06: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
Jade McGough 6e7a1296a2
feat(http): add swagger docs for tasks 2018-05-29 16:25:27 -07: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 a2eb4bb762
Merge pull request #64 from influxdata/js-transpiler-remove-org-parameter
fix(http): remove the orgID parameter from the transpiler handler
2018-05-29 11:06:22 -05:00
Jonathan A. Sternberg bde1a71bab fix(http): remove the orgID parameter from the transpiler handler
The /query endpoint didn't have an orgID parameter so we can't have one
in the transpiler endpoint. This removes the parameter and replaces it
with a command line parameter that sets which organization we are using
for querying ifql.
2018-05-29 11:01:46 -05: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) d495e46125 update lockfile 2018-05-28 02:40:35 -05:00
j. Emrys Landivar (docmerlin) fce46a3cbd a toKafka function 2018-05-28 02:33:40 -05:00
Nathaniel Cook a073ff0538 Merged pull request #57 from influxdata/nc-fix-default-group
fix(query): Fix default group mode
2018-05-25 15:18:41 -06: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 65c510ec3b Merged pull request #53 from influxdata/nc-querytest-names
fix(query/querytest): Use t.Run to give tests clear names
2018-05-25 13:34:10 -06: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 13b42c111e Merged pull request #48 from influxdata/nc-mergeKey
feat(query/functions/map): Add mergeKey argument to map
2018-05-25 11:39:49 -06: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 2a6885ba46 Merged pull request #42 from influxdata/nc-csv-errors
fix(query/csv): Encode result iterator errors
2018-05-25 10:02:08 -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 04a0775960
Merge pull request #44 from influxdata/js-transpiler-yield-name
feat(query/influxql): use yield name to specify the statement id
2018-05-24 16:42:27 -05: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 f1eddb46bd Merged pull request #40 from influxdata/nc-empty-block
fix(query): Add Empty to blocks
2018-05-24 12:06:52 -06:00
Nathaniel Cook 321d528808 Merged pull request #41 from influxdata/nc-idp-influx
chore(idp): Rename cmd/idp to cmd/influx
2018-05-24 12:06:20 -06:00
Nathaniel Cook 5ecfdcffd2 chore(cmd/influx): Flatten ifql subcommand
Now the commands are:
    influx query
    influx repl
2018-05-24 11:46:40 -06:00
Nathaniel Cook 1e1c6e21e5 chore(idp): Rename cmd/idp to cmd/influx 2018-05-24 11:34:39 -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
Jonathan A. Sternberg a7d5a89844
Merge pull request #36 from influxdata/js-http-error-handling
feat(http): add a utility function for reading http errors
2018-05-23 13:42:07 -05:00
Jonathan A. Sternberg 48ece5136f feat(http): add a utility function for reading http errors
This also modifies the http error encoder to not include the reference
code in the `X-Influx-Error` message so it only includes the text.
2018-05-23 13:29:48 -05:00
Jonathan A. Sternberg 367793c1bd
Merge pull request #33 from influxdata/js-transpilerd-logger
feat(cmd/transpilerd): follow the logging style guide for transpilerd
2018-05-23 12:28:15 -05: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
Jonathan A. Sternberg eb83898c73 feat(cmd/transpilerd): follow the logging style guide for transpilerd
Introduce logging into the http server implementation for when the
server is shutting down and reporting when we receive a signal for a
hard shutdown.
2018-05-23 12:06:09 -05:00
Jonathan A. Sternberg 0cc2440c1f
Merge pull request #30 from influxdata/js-transpiler-shutdown
feat(cmd/transpilerd): update transpilerd to use http server package
2018-05-23 12:05:54 -05:00
Jorge Landivar 5aaf474ba3
Merge pull request #29 from influxdata/addr2url
addr -> url
2018-05-23 10:30:54 -05:00
Nathaniel Cook 5f7476953a Merged pull request #23 from influxdata/nc-ifql-nightly
Create nightly builds of ifqld
2018-05-23 09:15:22 -06:00
Nathaniel Cook 08eb19805d chore(CI): Create nightly builds of ifqld
The builds are really anytime a commit is made to master not nightly.
Builds use goreleaser with the snapshot setting.
2018-05-23 09:13:46 -06:00