influxdb/query
Jeffrey Smith II fce0d1c863
chore: update to go 1.19 (#24119)
* chore: update to go 1.19.6

* chore: gofmt

* test: fix tests for sort order change

* chore: generate pb

* feat: upgrade flux to v0.188.0 (#23911)

* feat: upgrade flux to 0.171.0

Tests failing, safety commit

First step in https://github.com/influxdata/influxdb/issues/23815

* fix: remove "org" parameter" from writeOptSource

I attempted to implement the "orgOpt" argument in a similar fashion
to f6669f7512. However, it looks like Flux doesn't accept "org" as
a parameter to "load". It responds with:

Error calling function \"load\" @113:16-113:30: error calling function \"to\" @6:19-6:47: unused arguments [org]

This brings us from 194 passing to 570 passing.

* fix: temporarily disable broken flux tests

These tests expect rows to be stored in a certain order. However,
nothing is specifying the sort order. This has been fixed in a
later update to flux: (see 3d6f47ded).

Temporarily disable these tests until we include a fixed
version of the flux tests.

* chore: add tests from a492993012

This fixes "test-flux.sh" so it runs tests within the "flux/"
directory. This uncovered some other issues with the tests
located within "flux/". These also needed to be updated
to match the newer flux API.

* feat: upgrade flux to 0.172.0

This includes changes made in "cbbf4b27da". Since "test.go" in 2.x
diverged from 1.x, some modifications were required to make this
compatible.

* feat: upgrade flux to 0.173.0

* feat: upgrade flux to v0.174.0

* fix: Update the condition when reseting cursor (#23522)

Filters that contain `or` may change between cursor resets so we must remember to update the condition in the read cursor.

```flux
|> filter(fn: (r) => ((r["_field"] == "field1" and r["_value"]==true) or (r["_field"] == "field2" and r["_value"] == false)))
```

Closes https://github.com/influxdata/flux/issues/4804

* feat: upgrade flux to 0.174.1

* feat: upgrade flux to 0.175.0

* chore: remove end-to-end tests

These were removed in a492993 for 2.x. These tests prevent "go test ./..."
from completing. As stated in the original commit, these tests should now be
handled by the "fluxtest" harness.

* feat: upgrade flux to 0.176.0

Some tests needed to be disabled within the flux harness. This is a
result of enabling "Optimize Aggregate Window" in flux@05a1065f.
These tests are not present in 2.x. Therefore, I am unsure if
the breakage is resolved in a later commit.

* feat: upgrade flux to 0.177.0

* feat: upgrade flux to 0.178.0

* feat: upgrade flux to v0.179.0

This removes all invocations of "flux.RegisterOpSpec". According
to flux@e39096d5, "flux.RegisterOpSpec" does nothing in the
current version of flux and was removed.

* chore: update fluxtest skip list (#23633)

* chore: manually backport 785a465e9a

This removes the reference to "flux.Spec".

* build(flux): update flux to v0.181.0 (#23682)

* build(flux): update flux to v0.184.2

* chore: skip more Flux acceptance tests

There are issues for each skip detailed in test-flux.sh.

* feat: upgrade flux to v0.185.0

This adds "FluxTesting" to the "HTTPD" configuration. This option is
hidden and disabled by default. When "FluxTesting" is set, it
enables the default testing flags for "Flux".

These flags allow the "vectorized float tests" and tests requiring
the "removeRedundantSortNodes" and "labelPolymorphism" flag
enabled to work. These changes are based off of d8553c002e.

flux@3d6f47ded is included within this version of Flux. Therefore
we can now include the "group_*" tests.

* feat: upgrade flux to 0.186.0

* feat: upgrade flux to 0.187.0

* feat: upgrade flux to 0.188.0

* fix: re-run ./generate.sh with updated protoc

* fix: restrict cores to match CircleCI documentation

Co-authored-by: davidby-influx <dbyrne@influxdata.com>
Co-authored-by: Markus Westerlind <marwes91@gmail.com>
Co-authored-by: Sean Brickley <sean@wabr.io>
Co-authored-by: Jonathan A. Sternberg <jonathan@influxdata.com>
Co-authored-by: Christopher M. Wolff <chris.wolff@influxdata.com>

---------

Co-authored-by: Brandon Pfeifer <bpfeifer@influxdata.com>
Co-authored-by: davidby-influx <dbyrne@influxdata.com>
Co-authored-by: Markus Westerlind <marwes91@gmail.com>
Co-authored-by: Sean Brickley <sean@wabr.io>
Co-authored-by: Jonathan A. Sternberg <jonathan@influxdata.com>
Co-authored-by: Christopher M. Wolff <chris.wolff@influxdata.com>
2023-03-03 10:05:05 -05:00
..
control chore: upgrade flux to v0.167.0 in 1.10 (#23350) 2022-05-17 16:27:38 -04:00
internal chore: update to go 1.19 (#24119) 2023-03-03 10:05:05 -05:00
neldermead move RewriteStatement and neldermead to influxdb/query package 2017-10-30 10:24:15 -07:00
call_iterator.go feat(query): Hyper log log operators in influxql (#20603) 2021-02-08 08:38:14 -05:00
call_iterator_test.go Cleanup query package 2018-01-21 12:08:23 -08:00
cast.go Fix subquery functionality when a function references a tag from the subquery 2018-10-04 10:05:20 -05:00
compile.go fix: error instead of panic for statement rewrite failure (#21792) 2021-07-06 11:05:21 -04:00
compile_test.go fix: error instead of panic for statement rewrite failure (#21792) 2021-07-06 11:05:21 -04:00
cursor.go fix(fill): fill resets the previous value when a new series or window is encountered (#13459) 2019-04-18 10:44:15 -04:00
emitter.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
encode.go chore: update to go 1.19 (#24119) 2023-03-03 10:05:05 -05:00
encode_test.go fix: tsi index should compact old or too-large log files (#21943) 2021-07-26 17:40:15 -04:00
execution_context.go fix: return correct count of ErrNotExecuted (#22273) 2021-08-24 11:27:10 -07:00
executor.go fix: return correct count of ErrNotExecuted (#22273) 2021-08-24 11:27:10 -07:00
executor_test.go fix: flux error properly read by cloud (#22348) 2021-08-31 17:43:12 -04:00
explain.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
functions.gen.go feat(query): Hyper log log operators in influxql (#20603) 2021-02-08 08:38:14 -05:00
functions.gen.go.tmpl feat(query): Hyper log log operators in influxql (#20603) 2021-02-08 08:38:14 -05:00
functions.go chore: update to go 1.19 (#24119) 2023-03-03 10:05:05 -05:00
functions_test.go feat(query): Hyper log log operators in influxql (#20603) 2021-02-08 08:38:14 -05:00
iterator.gen.go chore: update to go 1.19 (#24119) 2023-03-03 10:05:05 -05:00
iterator.gen.go.tmpl build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
iterator.go build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
iterator_mapper.go Fix subquery functionality when a function references a tag from the subquery 2018-10-04 10:05:20 -05:00
iterator_mapper_test.go Strip tags from a subquery when the outer query does not group by that tag 2018-10-04 10:05:46 -05:00
iterator_test.go feat(query): Hyper log log operators in influxql (#20603) 2021-02-08 08:38:14 -05:00
linear.go Add unsigned iterators for all types 2017-09-18 15:09:10 -05:00
math.go Fix #10261 ABS(int64) 2018-09-11 21:53:44 +01:00
math_test.go Fix #10261 ABS(int64) 2018-09-11 21:53:44 +01:00
monitor.go Modify context key type 2018-10-16 11:25:33 +09:00
monitor_test.go Modify the Select call to return a Cursor 2018-03-09 12:47:41 -06:00
point.gen.go build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
point.gen.go.tmpl build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
point.go build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
point_test.go Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00
query.go build: upgrade protobuf library (#22606) 2021-10-15 11:42:47 -05:00
result.go influxdata/influxdb/influxql -> influxdata/influxql 2017-10-30 14:40:26 -07:00
select.go refactor: separate coarse and fine permission interfaces (#20996) 2021-03-22 09:52:33 -04:00
select_test.go feat(query): Hyper log log operators in influxql (#20603) 2021-02-08 08:38:14 -05:00
statement_rewriter.go feat: SHOW TAG VALUES should produce results from one specific RP (#21983) 2021-08-02 11:11:39 -07:00
statement_rewriter_test.go feat: SHOW TAG VALUES should produce results from one specific RP (#21983) 2021-08-02 11:11:39 -07:00
subquery.go Strip tags from a subquery when the outer query does not group by that tag 2018-10-04 10:05:46 -05:00
subquery_test.go refactor: separate coarse and fine permission interfaces (#20996) 2021-03-22 09:52:33 -04:00
task_manager.go feat: optionally dump queries to log on SIGTERM (#22638) 2021-10-07 14:02:38 -07:00
tmpldata Separate the query engine into a separate package 2017-08-16 13:38:43 -05:00