Commit Graph

12134 Commits (f234442534aa8354885347caea046a2b4b2d60dd)

Author SHA1 Message Date
Dom Dwyer 92b1055e41
refactor: error message should not end in .
Change the "bad character" namespace name error to not include a
trailing "."
2023-04-18 14:46:22 +02:00
Marco Neumann d7dc305972
feat: allow overwriting DataFusion's default config (#7586)
This is helpful to test changes in our defaults but also for testing.

Required for https://github.com/influxdata/idpe/issues/17474 .

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-18 11:28:45 +00:00
kodiakhq[bot] b6c2b00353
Merge pull request #7588 from influxdata/dom/router-deps
refactor(router): remove unused deps
2023-04-18 11:00:09 +00:00
kodiakhq[bot] f8f57ceeec
Merge branch 'main' into dom/router-deps 2023-04-18 10:53:43 +00:00
kodiakhq[bot] 393bcf245a
Merge pull request #7587 from influxdata/dom/tidy-authz
refactor: move HTTP authz helpers into authz
2023-04-18 10:53:27 +00:00
kodiakhq[bot] 26575f8bb9
Merge branch 'main' into dom/tidy-authz 2023-04-18 10:47:18 +00:00
dependabot[bot] a409fd45f7
chore(deps): Bump tonic-reflection from 0.9.1 to 0.9.2 (#7581)
Bumps [tonic-reflection](https://github.com/hyperium/tonic) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: tonic-reflection
  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: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-18 10:40:49 +00:00
Dom Dwyer f46a29aa42
refactor(router): remove unused deps
The Removes more unused dependencies in the router specifically.
2023-04-18 12:34:14 +02:00
Dom Dwyer 2b9a809de4
refactor: move HTTP authz helpers into authz
The "server_util" crate exists only to support HTTP authz operations, so
this commit moves it under the authz crate. This helper is gated by a
feature flag allowing callers to opt into this extra HTTP dependency
(disabled by default).
2023-04-18 12:30:56 +02:00
Dom e03c7cd105
Merge pull request #7585 from influxdata/dom/remove-unused
chore: remove unused dependencies
2023-04-18 11:30:39 +01:00
Dom 2df9059676
Merge branch 'main' into dom/remove-unused 2023-04-18 11:23:30 +01:00
kodiakhq[bot] 14877144eb
Merge pull request #7577 from influxdata/cn/remove-old-catalog-functions
fix: remove old, unused catalog functions (and a few types)
2023-04-18 10:11:39 +00:00
Dom Dwyer c5bb88e173
chore: remove unused dependencies
Some crates import dependencies they never use.
2023-04-18 12:07:13 +02:00
kodiakhq[bot] 1e48988695
Merge branch 'main' into cn/remove-old-catalog-functions 2023-04-18 10:05:27 +00:00
dependabot[bot] 36947616fd
chore(deps): Bump tonic-health from 0.9.1 to 0.9.2 (#7580)
Bumps [tonic-health](https://github.com/hyperium/tonic) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: tonic-health
  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: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-18 10:04:53 +00:00
Carol (Nichols || Goulding) d60e4d5823
feat: Delete delete parsing code from router (#7573)
And return the "deletes unsupported" error sooner.

Co-authored-by: Dom <dom@itsallbroken.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-18 09:57:02 +00:00
Dom a06345c925
Merge pull request #7582 from influxdata/dependabot/cargo/tonic-0.9.2
chore(deps): Bump tonic from 0.9.1 to 0.9.2
2023-04-18 10:45:28 +01:00
kodiakhq[bot] 0dcc34816e
Merge branch 'main' into cn/remove-old-catalog-functions 2023-04-18 09:22:22 +00:00
Fraser Savage dae06b4587
refactor(router): Use by-ref lookup API for NamespaceCache
Assert namespace ID does not change for the same named cache entry,
as it is an invariant.
2023-04-18 10:14:56 +01:00
dependabot[bot] 2e818fb370
chore(deps): Bump tonic from 0.9.1 to 0.9.2
Bumps [tonic](https://github.com/hyperium/tonic) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.9.1...v0.9.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-18 07:54:43 +00:00
dependabot[bot] 91d1441031
chore(deps): Bump tonic-build from 0.9.1 to 0.9.2 (#7579)
Bumps [tonic-build](https://github.com/hyperium/tonic) from 0.9.1 to 0.9.2.
- [Release notes](https://github.com/hyperium/tonic/releases)
- [Changelog](https://github.com/hyperium/tonic/blob/master/CHANGELOG.md)
- [Commits](https://github.com/hyperium/tonic/compare/v0.9.1...v0.9.2)

---
updated-dependencies:
- dependency-name: tonic-build
  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: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-18 07:53:01 +00:00
kodiakhq[bot] 3995c65e6b
Merge pull request #7584 from influxdata/sgc/issue/distinct_6914
feat: Teach IOx how to process `COUNT(DISTINCT)` and `DISTINCT` queries
2023-04-18 07:41:48 +00:00
Stuart Carnie 447ac6b0cb
chore: Add a newline to the end of the test file 2023-04-18 17:34:03 +10:00
Stuart Carnie 38b0ec31c9
chore: ensure test results are consistent
Test LIMIT, but make sure all results are included, as the order is
not consistent and CI sometimes has a different value
2023-04-18 17:19:09 +10:00
Stuart Carnie 6eeec9d448
chore: ensure test results are consistent 2023-04-18 17:08:42 +10:00
Stuart Carnie fc9b89da44
feat: `SELECT DISTINCT` support 2023-04-18 16:51:02 +10:00
Stuart Carnie b2dfe30a42
chore: use `error` module 🧹 2023-04-18 16:50:48 +10:00
Stuart Carnie dbf7e73d3e
feat: COUNT(DISTINCT) 2023-04-18 16:50:24 +10:00
Stuart Carnie bf392eeb4c
feat: identify `SELECT DISTINCT <ident>` projections
These are special, so they have a new projection type
2023-04-18 16:49:11 +10:00
Stuart Carnie 8f78fe7b08
chore: rewrite `DISTINCT <ident>` to `Call` expression
This simplifies downstream processing of the AST if DISTINCT is
consistent.
2023-04-18 16:47:52 +10:00
Stuart Carnie 5987bc1ea2
feat: Like `Option`, add `take` API to allow ownership transfer
This will be useful when mutably walking an expression tree and reusing
existing allocations.
2023-04-18 16:46:04 +10:00
Carol (Nichols || Goulding) ba1be8db30
fix: Remove unused count_by_overlaps_with_level_1 function 2023-04-17 20:43:40 -04:00
Carol (Nichols || Goulding) 88fad54f4c
fix: Remove unused count_by_overlaps_with_level_0 function 2023-04-17 20:40:42 -04:00
Carol (Nichols || Goulding) fefc6e4c27
fix: Remove unused most_cold_files_partitions function 2023-04-17 20:36:13 -04:00
Carol (Nichols || Goulding) a4a1a2e6b3
fix: Remove unused partitions_with_small_l1_file_count function 2023-04-17 20:33:37 -04:00
Carol (Nichols || Goulding) 2dd79c1741
fix: Remove unused recent_highest_througput_partitions function 2023-04-17 20:29:39 -04:00
Carol (Nichols || Goulding) f1850c9234
fix: Remove unused level_1 function and TablePartition type 2023-04-17 19:28:50 -04:00
Carol (Nichols || Goulding) a55e2e5fdb
fix: Remove unused level_0 function 2023-04-17 19:28:49 -04:00
Carol (Nichols || Goulding) 5b5ab7faf3
fix: Remove unused delete_old function 2023-04-17 19:28:49 -04:00
Carol (Nichols || Goulding) f344b94af7
fix: Remove unused list_by_shard_greater_than function 2023-04-17 19:28:49 -04:00
Carol (Nichols || Goulding) afaa954270
fix: Remove unused most_recent_n_in_shards function 2023-04-17 19:28:49 -04:00
Carol (Nichols || Goulding) 2d1564d568
fix: Remove unused update_persisted_sequence_number function 2023-04-17 19:28:49 -04:00
Carol (Nichols || Goulding) d0906f5f38
fix: Remove unused list_by_namespace function 2023-04-17 19:28:49 -04:00
Carol (Nichols || Goulding) 6c06b9fd7a
fix: Remove unused list_type_count_by_table_id and ColumnTypeCount 2023-04-17 19:28:49 -04:00
kodiakhq[bot] 7cb3048035
Merge pull request #7578 from influxdata/cn/update-h2
fix: Update h2 crate because 0.3.17 was yanked
2023-04-17 23:16:14 +00:00
kodiakhq[bot] 0c3a8724ac
Merge branch 'main' into cn/update-h2 2023-04-17 23:10:23 +00:00
Carol (Nichols || Goulding) 5084dab0ef
fix: Update h2 crate because 0.3.17 was yanked 2023-04-17 18:35:14 -04:00
kodiakhq[bot] 79ed8da7e2
Merge pull request #7563 from influxdata/sgc/issue/last_7538
feat: Teach InfluxQL `last`, `first`, `min` and `max` selector functions
2023-04-17 20:41:26 +00:00
Stuart Carnie c506d88381
chore: Use functions from `error` module 2023-04-18 06:24:24 +10:00
Stuart Carnie ad3e6aadea
Merge branch 'main' into sgc/issue/last_7538
# Conflicts:
#	iox_query_influxql/src/plan/planner.rs
2023-04-18 06:18:02 +10:00