Commit Graph

12462 Commits (bf4fce3c77b3f996cb151cb9aed0fd511b011ace)

Author SHA1 Message Date
Stuart Carnie bf4fce3c77
feat: Implement `LiteralExpr` for `bool` 2023-06-02 13:38:37 +10:00
Stuart Carnie d5719f9be2
refactor: Moved simplification of time range expressions to parser 2023-06-02 09:50:01 +10:00
Stuart Carnie 8c02f81456
chore: Add some docs to the execution_props API 2023-05-31 12:31:38 +10:00
Stuart Carnie d9d7419693
refactor: move time range logic to separate module
The `rewrite_expression` module was getting large, so made sense to
move time range logic to its own module.
2023-05-31 12:28:03 +10:00
Stuart Carnie 0a7e162911
refactor: rename into planner submodule 2023-05-31 12:14:12 +10:00
Stuart Carnie 8f2c235b15
refactor: these are APIs for transforming InfluxQL expressions 2023-05-31 12:09:32 +10:00
kodiakhq[bot] 306171e714
Merge pull request #7889 from influxdata/sgc/issue/7829_time_bounds
fix: gap filling with multiple lower or upper time bounds
2023-05-31 00:05:45 +00:00
Stuart Carnie 10e15f81fe
Merge branch 'main' into sgc/issue/7829_time_bounds 2023-05-31 09:42:21 +10:00
Joe-Blount baaffd4445
Merge pull request #7896 from influxdata/jrb_45_deterministic_l0_order
feat: Order L0s more deterministically
2023-05-30 17:10:38 -05:00
Joe-Blount 3b77929007 chore: lint fmt 2023-05-30 16:08:40 -05:00
Joe-Blount c2423d8a5c feat: Order L0s more deterministically 2023-05-30 15:52:03 -05:00
Andrew Lamb a4789b0ad3
docs: Add ticket reference for other upstream implementations of flightsql (#7891)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-30 13:33:17 +00:00
kodiakhq[bot] 7d1d636358
Merge pull request #7890 from influxdata/dom/explicit-mod
refactor: explicit submod for partition_template
2023-05-30 13:21:22 +00:00
Dom Dwyer 9e0570f2bf
refactor: explicit submod for partition_template
Move the import into the submodule itself, rather than re-exporting it
at the crate level.

This will make it possible to link to the specific module/logic.
2023-05-30 15:13:20 +02:00
Dom e6dc8f17c3
Merge pull request #7888 from influxdata/dependabot/cargo/once_cell-1.17.2
chore(deps): Bump once_cell from 1.17.1 to 1.17.2
2023-05-30 10:14:08 +01:00
Stuart Carnie dbdb24e3dd
Merge branch 'main' into sgc/issue/7829_time_bounds 2023-05-30 15:46:53 +10:00
Stuart Carnie 600ed6652c
refactor: rewrite time-range expressions to a single range
Fixes gap filling, which was confused by multiple lower or upper
time bounds.
2023-05-30 15:46:45 +10:00
dependabot[bot] 840692e1f3
chore(deps): Bump once_cell from 1.17.1 to 1.17.2
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.17.1 to 1.17.2.
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.17.1...v1.17.2)

---
updated-dependencies:
- dependency-name: once_cell
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-30 02:58:12 +00:00
Andrew Lamb 9ceb3e117a
docs: Add upstream ticket link (#7881)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-29 16:31:18 +00:00
dependabot[bot] bfc395a30d
chore(deps): Bump comfy-table from 6.1.4 to 6.2.0 (#7883)
Bumps [comfy-table](https://github.com/nukesor/comfy-table) from 6.1.4 to 6.2.0.
- [Release notes](https://github.com/nukesor/comfy-table/releases)
- [Changelog](https://github.com/Nukesor/comfy-table/blob/main/CHANGELOG.md)
- [Commits](https://github.com/nukesor/comfy-table/compare/v6.1.4...v6.2.0)

---
updated-dependencies:
- dependency-name: comfy-table
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dom <dom@itsallbroken.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-29 09:22:56 +00:00
dependabot[bot] edbecd53af
chore(deps): Bump log from 0.4.17 to 0.4.18 (#7884)
Bumps [log](https://github.com/rust-lang/log) from 0.4.17 to 0.4.18.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.17...0.4.18)

---
updated-dependencies:
- dependency-name: log
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dom <dom@itsallbroken.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-29 09:17:08 +00:00
dependabot[bot] e0720db138
chore(deps): Bump tokio from 1.28.1 to 1.28.2 (#7885)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 1.28.1 to 1.28.2.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.28.1...tokio-1.28.2)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dom <dom@itsallbroken.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-29 09:11:24 +00:00
kodiakhq[bot] 79f6615ab7
Merge pull request #7876 from influxdata/dom/frame-docs
docs: describe what the spans capture
2023-05-29 09:05:17 +00:00
Dom 8bf834a7ea
Merge branch 'main' into dom/frame-docs 2023-05-29 09:59:37 +01:00
Dom 40ab025dc5
Merge pull request #7886 from influxdata/dependabot/cargo/criterion-0.5.1
chore(deps): Bump criterion from 0.5.0 to 0.5.1
2023-05-29 09:59:31 +01:00
Dom 8f6308fca3
Merge branch 'main' into dom/frame-docs 2023-05-29 09:59:27 +01:00
dependabot[bot] e2b9beffad
chore(deps): Bump criterion from 0.5.0 to 0.5.1
Bumps [criterion](https://github.com/bheisler/criterion.rs) from 0.5.0 to 0.5.1.
- [Changelog](https://github.com/bheisler/criterion.rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/bheisler/criterion.rs/compare/0.5.0...0.5.1)

---
updated-dependencies:
- dependency-name: criterion
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 02:02:12 +00:00
Christopher M. Wolff 2a07b53879
feat: add more tag predicate rewrite logic for InfluxQL (#7869)
* feat: add more tag predicate rewrite logic for InfluxQL

* chore: cargo fmt

* chore: fmt

* test: add more tests

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-26 21:53:52 +00:00
Andrew Lamb d3b8fa2c21
chore(docs): Update tracing.md with latest jaeger (#7878)
Update instructions to use latest jaeger version

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-26 17:24:05 +00:00
Dom 0b9b775fbd
Merge pull request #7877 from influxdata/alamb/object_store_dep
chore: use workspace dependencies for `object_store`
2023-05-26 13:34:27 +01:00
Andrew Lamb 1ff76b7bf2 chore: use workspace dependencies for `object_store` 2023-05-26 07:03:42 -04:00
Dom Dwyer ed276bdc73
docs: reflink RecordBatch 2023-05-26 12:07:05 +02:00
Andrew Lamb c1a448e930
feat: Add decoded payload type and size to querier <--> ingester tracing (#7870)
* feat: Add decoded payload type and size to querier <--> ingester tracing

* feat: add aggregate sizes

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-26 10:05:14 +00:00
Dom Dwyer c4691b04e4
docs: describe what the spans capture
A short description on the FlightFrameEncodeRecorder that helps people
understand exactly what the spans cover - it's likely people will wind
up looking at this code after debugging an issue in a trace, so lets
make sure we give them as much helpful context as possible!
2023-05-26 11:46:45 +02:00
wiedld 7bcde3c544
chore(7618): trace ingester response encoding v2 (#7820)
* test: integration test for tracing of queries to the ingester

* chore: add FlightFrameEncodeRecorder to record spans per each polling result

* refactor(trace): impl TraceCollector for Arc

Allow any Arc-wrapped TraceCollector implementation to be used as a
TraceCollector. This avoids needing to as_any() and downcast later.

* test: assert FlightFrameEncodeRecorder trace spans

This test exercises the FlightDataEncoder wrapped with the trace
decorator (FlightFrameEncodeRecorder) when executing against a data
source that yields data after varying numbers of Stream polls.

This test passing will validate the FlightFrameEncodeRecorder correctly
instruments the amount of time a client spends waiting on the
FlightDataEncoder to acquire or encode a protocol frame, but also
ensures the decorator correctly accounts for varying behaviours allowed
through the Stream abstraction. It does this by simulating a data source
that is not always immediately ready to provide data, such as a buffer
wrapped in a contended async mutex.

* refactor: move tracing decorator into separate mod

* fix: record spans

* refactor(test): update test

The frame encoder is not one-to-one - it emits two frames for the first
data payload, a schema and a payload. This commit updates the test to
account for it!

* refactor: remove unneeded mut ref, and use enum state method which panics when in a (should be unreachable) state

* chore: add more docs to FlightFrameEncodeRecorder and related

---------

Co-authored-by: Dom Dwyer <dom@itsallbroken.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-26 09:40:16 +00:00
dependabot[bot] eb0d77f354
chore(deps): Bump regex from 1.8.2 to 1.8.3 (#7873)
Bumps [regex](https://github.com/rust-lang/regex) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.8.2...1.8.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dom <dom@itsallbroken.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-26 09:34:25 +00:00
dependabot[bot] ececd0ada7
chore(deps): Bump base64 from 0.21.1 to 0.21.2 (#7874)
Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.21.1 to 0.21.2.
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.21.1...v0.21.2)

---
updated-dependencies:
- dependency-name: base64
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dom <dom@itsallbroken.com>
2023-05-26 09:28:43 +00:00
kodiakhq[bot] 8a0062b3b5
Merge pull request #7875 from influxdata/sgc/issue/influxql_cleanup
chore: Minor cleanup
2023-05-26 07:17:25 +00:00
Stuart Carnie 6c8cab1073
chore: Separate scope from context, as it is a separate concern 2023-05-26 12:12:11 +10:00
Stuart Carnie 377e108152
chore: No need to be exported from current module 2023-05-26 12:12:10 +10:00
kodiakhq[bot] 928731767e
Merge pull request #7826 from influxdata/cn/table-create-grpc-api
feat: table creation gRPC API with optional custom table template
2023-05-25 18:59:00 +00:00
kodiakhq[bot] c4eca5fecf
Merge branch 'main' into cn/table-create-grpc-api 2023-05-25 18:53:12 +00:00
Carol (Nichols || Goulding) 27e700f54c
docs: Flag race condition possibility as a known issue 2023-05-25 14:15:18 -04:00
Carol (Nichols || Goulding) c2e19b3826
docs: Mention tag column creation in the table creation service description
Co-authored-by: Dom <dom@itsallbroken.com>
2023-05-25 14:02:37 -04:00
Andrew Lamb d68a399a7b
fix: fix span name (#7868)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-25 17:40:43 +00:00
Andrew Lamb 138b14e0db
chore: Update DataFusion and arrow to `40.0.0` (#7864)
* chore: Update DataFusion and arrow to `40.0.0`

* chore: Run cargo hakari tasks

* fix: update for API

---------

Co-authored-by: CircleCI[bot] <circleci@influxdata.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-05-25 17:34:51 +00:00
Carol (Nichols || Goulding) 5d457212d4
feat: Log the table's partition template on successful creation 2023-05-25 13:19:33 -04:00
Carol (Nichols || Goulding) 7662b12dd9
fix: Return 'invalid argument' error if a column already exists and it's not a tag
No test because I think this is only possible with a race condition.
2023-05-25 13:19:33 -04:00
Carol (Nichols || Goulding) c3117e7eb8
fix: Return 'already exists' errors from namespace and table gRPC APIs
When appropriate, rather than internal errors.
2023-05-25 13:19:33 -04:00
Carol (Nichols || Goulding) de243ad823
test: Verify default template usage 2023-05-25 10:55:51 -04:00