Commit Graph

603 Commits (e9689b7269bc219bd75a1d3a51770de257b2c8e8)

Author SHA1 Message Date
Christopher M. Wolff e9689b7269
chore: update to latest flux algo-w (#17408) 2020-03-24 15:45:10 -07:00
Christopher M. Wolff 20c2439230
refactor(http): change *ast.Package to json.RawMessage in query requests (#17316) 2020-03-23 12:39:24 -07:00
jlapacik 6c8125b1e8 chore: update flux dependency 2020-03-20 09:24:39 -07:00
Jonathan A. Sternberg 5f30466b5d
feat(query): update buckets and v1.databases calls (#17294)
The `buckets()` and `v1.databases()` functions have been updated to
support their remote counterparts that were added to flux. These
functions now do the same thing as the `from()` call where they will
default to the current organization when run against the server and will
use the remote versions from the repl.
2020-03-17 10:41:53 -05:00
Christopher M. Wolff 790661c196
test(query/stdlib/influxdata/influxdb): update rules_test to use algo-w (#17295)
Algorithm W will return a semantic graph where every function block
always uses a block and a return statement. This is in contrast to the
Go code which would have the semantic graph be an expression or a block.

The push down code would not introspect blocks which meant that any
function expression produced by algorithm w would never be pushed down.
This fixes it so the code will now extract the semantic expression from
inside of a block if there is exactly one statement and the statement is
a return statement.

Co-authored-by: Jonathan A. Sternberg <jonathan@influxdata.com>
2020-03-16 16:46:51 -07:00
jlapacik 07c9a7c921 fix(stdlib): unskip stateChanges end to end test
Closes https://github.com/influxdata/influxdb/issues/17064.
2020-03-12 15:44:56 -07:00
Jonathan A. Sternberg 8d2ba699a0
refactor(http): remove the spec and update lang usage (#17148)
This removes the spec and updates the lang package usage to make use of
passing in the runtime as a parameter.

It removes all direct dependendencies on the flux runtime from the http
package.
2020-03-09 13:30:43 -05:00
Jonathan A. Sternberg 400d710bc0
refactor(storage/reads): remove the storage dependency on libflux (#17109)
This removes the storage dependency on libflux by moving the interfaces
it implements to the `query` package so it can reference the definitions
rather than the package with the implementation and the registration
with the runtime. This breaks the dependency where a storage package
depends on a flux runtime package.
2020-03-06 19:59:16 -06:00
Jonathan A. Sternberg 0d6e4e310b
Merge branch 'master' into feat/use-algo-w 2020-03-06 16:46:49 -06:00
Yiqun (Ethan) Zhang 5333ff4d1b
feat(transpiler): support difference(), group by wildcard, and correc… (#17021)
* feat(transpiler): support difference(), stddev(), spread(), group by wildcard, and correct _time column
2020-03-06 11:19:46 -05:00
Jonathan A. Sternberg bcbb9df72e
refactor(task): tasks will now use the flux language service (#17104)
The tasks subsystem will now use the flux language service to parse and
evaluate flux instead of directly interacting with the parser or
runtime. This helps break the dependency on the libflux parser for the
base influxdb package.

This includes the task notification packages which were changed at the
same time.
2020-03-05 14:36:58 -06:00
Jonathan A. Sternberg a907e05426
refactor(http): modify query handler to use a language service (#17074)
The language service abstracts away the parse source which breaks the
dependency without moving any of the code.
2020-03-05 10:32:17 -06:00
jlapacik 3250fb1453 fix(stdlib): update flux dependency and unskip test 2020-03-05 08:24:51 -08:00
Christopher M. Wolff 027d29dd30
chore: update to Flux version v0.63.0 (#17083) 2020-03-03 13:17:37 -08:00
Jonathan A. Sternberg a84df749cc
feat(stdlib): add influxdb source (#17047)
This updates the repl to support the new influxdb source and use it by
default in the repl. It will automatically set some default variables
for the influxdb source to make it easier to use the cli. In particular,
it will set the default organization, token, and the host. The
organization gets set to the one specified in the repl command and the
token gets filled in with the user installed one. The host defaults to
localhost but will change to whichever one was specified on the cli.

In addition, this will replace the http client with one that sets
insecure skip verify if the `--skip-verify` flag is used.
2020-03-02 20:08:19 -06:00
jlapacik 03cfdba832 fix(stdlib): unskip flux end to end tests
Closes https://github.com/influxdata/influxdb/issues/16812.
2020-03-02 13:47:03 -08:00
Jonathan A. Sternberg 0872af8553
refactor: update semantic builtin lookups to use runtime now (#17066) 2020-03-02 14:51:49 -06:00
Christopher M. Wolff 7547ab8fc2
chore: update to Flux v0.62.0 (#17048) 2020-02-28 10:53:10 -08:00
Jonathan A. Sternberg 25b0e37522
feat: add support for pkg-config (#17036)
This adds support for using pkg-config to build libflux inside of the
flux dependency. The build can occur by either installing `pkg-config`
into your path or the `env` script can be used to invoke it from the go
modules.
2020-02-28 11:08:21 -06:00
Jonathan A. Sternberg ff848bcd55
refactor(repl): remove the querier from the repl (#17031)
The repl no longer takes in a querier and it will run everything
locally. The spec interface will now not be used and will be removed
from the http endpoint at some point.
2020-02-27 15:06:38 -06:00
Jonathan A. Sternberg 935180e9bd
refactor: update flux for the runtime package (#17002) 2020-02-27 11:31:45 -06:00
docmerlin (j. Emrys Landivar) cbbb5db71a fix(tasks): update to newer github.com/influxdb/cron 2020-02-24 09:20:05 -06:00
jlapacik 2c184ead7f chore: update flux dependency and unskip notification tests
Fixes https://github.com/influxdata/influxdb/issues/16809.
2020-02-21 14:58:41 -08:00
jlapacik b01e194613 chore: update flux dependency in promqltests 2020-02-21 14:03:02 -08:00
Jonathan A. Sternberg 7c88946eab
build(flux): update flux for promqltests (#16968) 2020-02-21 14:23:16 -06:00
Christopher M. Wolff 2535d54087
chore: update to Flux v0.60.0 (#16936) 2020-02-19 15:02:21 -08:00
Christopher M. Wolff 16fc8dfecd
build: remove -tags libflux and FLUX_PARSER_TYPE from build and circleci config (#16883)
Also, update to latest algo-w flux
2020-02-19 07:59:05 -08:00
Christopher M. Wolff d6766962d1
test(query): skip tests that are not passing in feat/use-algo-w (#16813) 2020-02-11 15:02:26 -08:00
Christopher Wolff 2e073fd955 chore: update to latest flux@feat/use-algo-w 2020-02-11 10:18:44 -08:00
Christopher Wolff 337595c3d2 chore: update to latest flux@feat/use-algo-w 2020-02-10 09:49:01 -08:00
Nathaniel Cook 9f7d4f9be0
feat(query): adds support for influxql as language type for queries (#16712)
This change allows for the InfluxQL language type to be used with the
/v2/query API endpoint.

This change also introduces a way to give the transpiler an explicit
bucket name instead of using the DBRPMapping service.
Requests to the endpoint will know the bucket name directly but will
likely not have run the migration step to populate the DBRP mappings.
2020-02-07 15:20:50 -07:00
Nathaniel Cook c46045e673
fix(influxql): update all links to transpiler issues to new github urls (#16728)
The platform repo was removed and the issues migrated. For ease in tracking progress the issues have been
updated with their new influxdb repo links.
2020-02-06 15:59:46 -07:00
Christopher Wolff 2bc8d49bcb chore(go.mod): update go.mod to point at latest flux@feat/use-algo-w 2020-01-31 10:44:08 -08:00
Christopher M. Wolff 0f3aabc954
refactor(query): let influxdb build against algo-w branch (#16673) 2020-01-24 14:36:09 -08:00
Jonathan A. Sternberg 0ec9a8b6b8
build(flux): update Flux to v0.59.4 2020-01-21 11:27:06 -06:00
Faith Chikwekwe 2f6c6791b9
build(flux): update Flux to v0.59.3 2020-01-21 11:26:46 -06:00
Lorenzo Affetti 0e0b36be0c feat(task): make task query without returning content 2020-01-17 16:51:01 +01:00
Lorenzo Affetti 1d0ea8ab64 feat(query): add 'Prefer: return-no-content-with-error' behavior 2020-01-15 16:42:29 +01:00
Lorenzo Affetti 48e130a28f
Merge pull request #16356 from influxdata/feat/discard-output
feat(query): add dialect to discard output
2020-01-08 17:28:32 +01:00
Yiqun Zhang 74ba877cb9
feat: opentracing in query execution runtime 2020-01-08 11:16:13 -05:00
Lorenzo Affetti dc4900e252 feat(query): add dialect to discard output 2020-01-08 16:46:52 +01:00
Gavin Cabbage 6fe69549d4 feat(query): add source to query request via user agent header 2020-01-07 09:28:49 -05:00
Jonathan A. Sternberg 6d22f81904
build(flux): update Flux to v0.58.0 2020-01-06 14:09:16 -06:00
Jonathan A. Sternberg 9194d89bbc
feat(query/stdlib): prevent a filter push down if the filter needs to keep empty tables (#16295)
The storage engine isn't capable of sending back empty tables when a
series is empty. Because of this, we disable the push down and let flux
do the filtering in the case where there is a filter and it is specified
to keep the empty tables.
2020-01-06 12:23:31 -06:00
Jacob Marble a2b2d828ee
fix(query): revert promqltests/go.sum (#16307)
Looks like #13370 mistakenly included a bad go.sum change
2019-12-20 11:22:31 -08:00
timhallinflux ef5f1bb0af docs: create CONTRIBUTING.md
Update CONTRIBUTING.md

Added Security Vulnerability Reporting

Updated the text to include the simple changes.  This branch still needs updating to reflect 2.0 API etc.
~

fix(contribution): updated the text for V2.
fixes #13370

Update the 'Getting the source' section'

Remove the 'Cloning a fork' seciton

* If they have forked the repo, it should be clear how to clone the fork.

refactor

last refactor

Use # for section headings

Minor grammar edit.

Update CONTRIBUTING.md

Fix tripple backticks

Backticks weren't being picked up by Github's md renderer properly.

Fixed formatting

Made tabs and spaces consistent (went for tabs, since that's what go uses).  Made cli commands consistent by including $ at the start of the line.  Fixed copy a little bit.

Softened the language

Fixes: https://github.com/influxdata/influxdb/pull/13370#discussion_r359393716
Softened the language a bit.

Update CONTRIBUTING.md

Co-Authored-By: Stuart Carnie <stuart.carnie@gmail.com>

chore: improve CONTRIBUTING.md
2019-12-20 10:36:40 +00:00
George ff38420558
feat(tasks): remove flux stats from run log and replace with trace id (#16263)
* feat(tasks): trace id in task run logs

* refactor(tracing): move trace info utility into kit/tracing package
2019-12-18 16:30:38 +01:00
Jonathan A. Sternberg 791cf15cd3
build(flux): update Flux to v0.57.0 2019-12-10 13:26:10 -06:00
Gavin Cabbage f1975bb268 refactor(logger): use TraceInfo in TraceFields 2019-12-10 09:06:33 -05:00
Gavin Cabbage b7c2c997d2 feat(query): annotate logger with trace id 2019-12-10 09:06:33 -05:00