Commit Graph

9866 Commits (651b7a1ce64df19c730e1fd721a1dcf4ecf618cf)

Author SHA1 Message Date
Carol (Nichols || Goulding) 8697ef4967
feat: Set up CLI args for new get-table command 2022-10-26 11:19:00 -04:00
Carol (Nichols || Goulding) 71770486af
refactor: Extract influxdb_iox remote CLI tests to their own file 2022-10-26 11:19:00 -04:00
kodiakhq[bot] bed55e2bcb
Merge pull request #5968 from influxdata/cn/workspace-dependencies
feat: Use workspace dep inheritance for arrow crates
2022-10-26 15:18:07 +00:00
Carol (Nichols || Goulding) a8ddf76f0c
fix: Remove script to update arrow deps replaced by workspace dep inheritance
There's now only one file to update these crates' versions.
2022-10-26 10:37:52 -04:00
Carol (Nichols || Goulding) b27e2bd7d1
feat: Use workspace dep inheritance for the parquet crate 2022-10-26 10:37:51 -04:00
Carol (Nichols || Goulding) 88c3a1f5e7
feat: Use workspace dep inheritance for the arrow-flight crate 2022-10-26 10:34:54 -04:00
Carol (Nichols || Goulding) 3145e2c05b
feat: Use workspace dep inheritance for the arrow crate 2022-10-26 10:34:29 -04:00
Carol (Nichols || Goulding) 44936f661a
feat: Use workspace dep inheritance for datafusion instead of shim crate 2022-10-26 10:33:56 -04:00
Andrew Lamb 474620f4a7
chore: Update datafusion and other dependencies (#5976)
* chore: Update datafusion and other dependencies

* chore: Update expected plan

* chore: Run cargo hakari tasks

Co-authored-by: CircleCI[bot] <circleci@influxdata.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-26 14:14:13 +00:00
Marco Neumann 9b48437711
refactor: make influx column type mandatory (#5978)
We basically assume everywhere that a column falls into one of the three
known categories (time, tag, field), so lets encode this in our type
system instead of defining "unknown" as "undefined behavior, may or may
not crash".

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-26 11:20:29 +00:00
Marco Neumann 99f4440658
refactor: parse HTTP trace header even w/o collector (#5979)
Since we log trace IDs to allow easier correlation of logs no matter
what the `sampled` flag says, we should also parse these logs if we
don't have a tace collector at all.

In practice, this won't make a difference since we always deploy with a
trace collector, but it also makes the code easier to reason about.

Helps with #5975.
2022-10-26 09:20:52 +00:00
dependabot[bot] 394bada875
chore(deps): Bump libc from 0.2.136 to 0.2.137 (#5977)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.136 to 0.2.137.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.136...0.2.137)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-26 08:45:06 +00:00
Nga Tran 9b5327a79c
feat: build a query plan without deduplication (#5810)
* feat: have a logical plan that is aware of no-deduplication

* feat: build physical scan plan that does not do deduplication

* chore: cleaup

* test: logical plans for scan with and without deduplication

* chore: clean up and a small refactor

* refactor: remove asserts on plan and rename make enable_deduplication default

* refactor: rename disable_deduplication to enable_deduplication
2022-10-25 17:56:51 +00:00
Luke Bond c39ae97dd4
chore: temporarily disable circle filter to build & push PRs (#5973)
* chore: temporarily disable circle filter to build & push PRs

* chore: allow build & push of container image for branches using param

* chore: indentation fix in circle config

* chore: rename build_perf to release_branch
2022-10-25 15:40:13 +00:00
Marco Neumann 5fd98ab483
refactor: enforce nullability for (known) IOx data types (#5972)
We don't support non-null tags, non-null fields, or nullable timestamps. Let's
just remove this from `schema` so that this never happens on accident.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-25 14:42:50 +00:00
Marco Neumann 99f36f8889
chore: unpatch clap V3 (#5971)
Upstream issue was solved by a new release.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-25 09:16:16 +00:00
dependabot[bot] f96da22cea
chore(deps): Bump libc from 0.2.135 to 0.2.136 (#5969)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.135 to 0.2.136.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.135...0.2.136)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 08:43:26 +00:00
kodiakhq[bot] 263f3c85a9
Merge pull request #5965 from influxdata/cn/workspace-inheritance
feat: Use workspace package metadata to reduce differences and repetion
2022-10-24 20:16:53 +00:00
kodiakhq[bot] 48d806b326
Merge branch 'main' into cn/workspace-inheritance 2022-10-24 20:10:08 +00:00
Andrew Lamb 335dafa3f7
fix: Do not truncate data retrieved from `remote store get` command (#5966) 2022-10-24 17:45:56 +00:00
Carol (Nichols || Goulding) 2e83e04eab
feat: Use workspace package metadata to reduce differences and repetition 2022-10-24 13:04:09 -04:00
kodiakhq[bot] 5280a8c959
Merge pull request #5964 from influxdata/crepererum/issue5897i
refactor: make `SchemaBuilder::field` fallible
2022-10-24 16:43:02 +00:00
kodiakhq[bot] 57519ec1ba
Merge branch 'main' into crepererum/issue5897i 2022-10-24 16:36:22 +00:00
Marco Neumann a227366432
refactor: do not project chunks in `TestDatabase::chunks` (#5960)
Databases are NOT required to project chunks (in practice this is only
done by the querier for ingester-based chunks). Instead `iox_query`
should (and already does) add the right stream adapters to project
chunks or to create NULL-columns. Removing the special handling from the
test setup makes it easier to understand and also less likely that
`iox_query` starts to rely on this behavior.

Helps with #5897.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-24 16:36:08 +00:00
Marco Neumann 3e4db81bc6 refactor: make `SchemaBuilder::field` fallible
It would be nice if the IOx data type would not be optional and this is
a prep clean-up to achieve that.
2022-10-24 18:12:42 +02:00
Marco Neumann c9b1066b89
refactor: simplify `iox_query::provider::overlap` (#5961)
- remove generic that is basically unused (`group_potential_duplicates`
  is always called w/ `Arc<dyn QueryChunk>`)
- remove half-baked `impl` that is unused

Helps w/ #5897.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-24 15:45:41 +00:00
Nga Tran 84e5c2a0ee
fix: cardinality of each batch should use row count of the batch (#5946)
* fix: cardinality of each batch should use row count of the batch

* chore: cleanup

* fix: auto-merge conflict

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-24 15:36:33 +00:00
Marco Neumann 1d440ddb2d
refactor: `IOxReadFilterNode` can always accumulate statistics (#5954)
* refactor: `IOxReadFilterNode` can always accumulate statistics

`IOxReadFilterNode` used to not emit statistics if one chunk has
duplicates or delete predicates. This is wrong (or at least overly
conservative), because the node itself (or the chunks themselves) do NOT
perform dedup or delete predicate filtering. Instead this is done is
done by parent nodes (`DeduplicateExec` and `FilterExec`) and its their
job to propagate statistics correctly.

Helps w/ #5897.

* test: explain setup

Co-authored-by: Andrew Lamb <alamb@influxdata.com>

Co-authored-by: Andrew Lamb <alamb@influxdata.com>
2022-10-24 13:34:22 +00:00
kodiakhq[bot] 0d4d7e266d
Merge pull request #5955 from influxdata/dom/revert-ttbr-histogram
revert: use histogram to record TTBR
2022-10-24 13:12:15 +00:00
kodiakhq[bot] 60d413bcf9
Merge branch 'main' into dom/revert-ttbr-histogram 2022-10-24 13:05:39 +00:00
Marco Neumann 284f253846
refactor: remove unused constant (#5956)
Now that we read throw `ParquetExec`, `ROW_GROUP_READ_SIZE` is no longer
used.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-24 11:08:44 +00:00
dependabot[bot] 6cbdc749df
chore(deps): Bump prometheus from 0.13.2 to 0.13.3 (#5952)
Bumps [prometheus](https://github.com/tikv/rust-prometheus) from 0.13.2 to 0.13.3.
- [Release notes](https://github.com/tikv/rust-prometheus/releases)
- [Changelog](https://github.com/tikv/rust-prometheus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tikv/rust-prometheus/compare/v0.13.2...v0.13.3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 09:24:21 +00:00
dependabot[bot] 5fb560dbff
chore(deps): Bump snafu from 0.7.2 to 0.7.3 (#5951)
Bumps [snafu](https://github.com/shepmaster/snafu) from 0.7.2 to 0.7.3.
- [Release notes](https://github.com/shepmaster/snafu/releases)
- [Changelog](https://github.com/shepmaster/snafu/blob/main/CHANGELOG.md)
- [Commits](https://github.com/shepmaster/snafu/compare/0.7.2...0.7.3)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 08:49:15 +00:00
dependabot[bot] 8e5e63f2a6
chore(deps): Bump base64 from 0.13.0 to 0.13.1 (#5950)
Bumps [base64](https://github.com/marshallpierce/rust-base64) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/marshallpierce/rust-base64/releases)
- [Changelog](https://github.com/marshallpierce/rust-base64/blob/master/RELEASE-NOTES.md)
- [Commits](https://github.com/marshallpierce/rust-base64/compare/v0.13.0...v0.13.1)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 08:39:29 +00:00
dependabot[bot] ee6e023d4e
chore(deps): Bump serde from 1.0.145 to 1.0.147 (#5949)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.145 to 1.0.147.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.145...v1.0.147)

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

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 08:29:32 +00:00
Dom Dwyer 39f826518b revert: use histogram to record TTBR
This reverts commit c63312ce12.

This change fixed a low-priority alert when there was no traffic flowing
through the system. The loss in TTBR value fidelity due to bucketing is
a greater concern as it affects live, high-volume clusters and hinders
operational insight.
2022-10-24 10:27:22 +02:00
Marco Neumann e0062f2d40
refactor: do NOT use fake DF context for parquet reading (#5942)
Use the proper top-level DataFusion context and register the object
store there.

Note that we still hide the `ParquetExec` behind an opaque record batch
stream. Fixing that is next on my list.

Helps with #5897.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-10-24 08:20:26 +00:00
Marco Neumann 4ca869fcd9
fix: textwrap 0.15.1 was yanked (#5953)
Need to pull an unreleased clap v3 so we no longer depend on a yanked
version of textwrap. Also see https://github.com/clap-rs/clap/issues/4418
2022-10-24 07:19:51 +00:00
kodiakhq[bot] dbcee1f74f
Merge pull request #5948 from influxdata/cn/fix-skipped-at-display
fix: Compactor skipped_at is in seconds, not nanoseconds oops
2022-10-21 21:11:27 +00:00
kodiakhq[bot] 87191d21ea
Merge branch 'main' into cn/fix-skipped-at-display 2022-10-21 21:04:34 +00:00
kodiakhq[bot] e26a3edebc
Merge pull request #5947 from influxdata/cn/document-skipped-compaction-cli
docs: Add skipped-compaction CLI to the compactor documentation
2022-10-21 20:55:28 +00:00
Carol (Nichols || Goulding) fe98e7a65c
fix: Compactor skipped_at is in seconds, not nanoseconds oops 2022-10-21 16:41:55 -04:00
Carol (Nichols || Goulding) 3143843078
docs: Explain the new debug skipped-compactions CLI 2022-10-21 16:34:54 -04:00
Carol (Nichols || Goulding) f07e59e778
fix: Clean up typos, markdown/code formatting, inconsistencies 2022-10-21 16:32:59 -04:00
kodiakhq[bot] 95853aed1a
Merge pull request #5945 from influxdata/jpg/delete-skipped-compactions
feat: Add gRPC and CLI APIs to delete skipped compactions
2022-10-21 19:38:11 +00:00
Jake Goulding fa7fe2e9cf feat: Add a gRPC endpoint to delete a skipped compaction
Also add a CLI usage of it for convenience
2022-10-21 15:12:20 -04:00
Jake Goulding df2ba85661 feat: add the ability to delete a skipped compaction 2022-10-21 15:12:20 -04:00
kodiakhq[bot] 1ba21d1d66
Merge pull request #5931 from influxdata/cn/show-skipped-compactions
feat: Add gRPC and CLI APIs to list skipped compactions
2022-10-21 18:05:47 +00:00
Carol (Nichols || Goulding) 68e310f45d
feat: Display skipped compactions in a table instead of JSON 2022-10-21 13:59:19 -04:00
Carol (Nichols || Goulding) b8a9fe4222
docs: Explain the meanings of skipped compaction's fields 2022-10-21 13:40:38 -04:00