Commit Graph

12134 Commits (f234442534aa8354885347caea046a2b4b2d60dd)

Author SHA1 Message Date
Stuart Carnie f234442534
chore: some initial tests for validating column schema inference 2023-05-11 09:46:38 +10:00
Stuart Carnie 26c96b356f
chore: rename test function to avoid collisions with future tests 2023-05-11 09:46:15 +10:00
Stuart Carnie 0c391de410
Merge branch 'main' into sgc/issue/6879_subquery_01 2023-05-11 06:02:09 +10:00
kodiakhq[bot] aac9911319
Merge pull request #7769 from influxdata/dom/rpc-client-error-split
refactor(router): separate RPC client error types
2023-05-10 10:45:59 +00:00
kodiakhq[bot] 8cc94a710f
Merge branch 'main' into dom/rpc-client-error-split 2023-05-10 10:40:12 +00:00
Dom ea086a913a
Merge pull request #7770 from influxdata/dependabot/cargo/console-subscriber-0.1.9
chore(deps): Bump console-subscriber from 0.1.8 to 0.1.9
2023-05-10 10:18:13 +01:00
Dom 8baf82071f
Merge branch 'main' into dependabot/cargo/console-subscriber-0.1.9 2023-05-10 10:12:24 +01:00
Dom 99f9069f81
Merge branch 'main' into dom/rpc-client-error-split 2023-05-10 10:09:08 +01:00
Dom ab68998f9e
Merge pull request #7771 from influxdata/cn/rename-querier2
fix: Rename last remaining "2" suffixed things I could find
2023-05-10 09:56:29 +01:00
Stuart Carnie 1d837b175e
feat: add schema support to DataSource::Subquery; fix incompatibilities 2023-05-10 14:33:34 +10:00
Carol (Nichols || Goulding) 3cafa9ace3
fix: Rename query_tests2 to query_tests 2023-05-09 22:10:46 -04:00
Carol (Nichols || Goulding) 35e8c52702
fix: Rename remaining test helper methods with a 2 suffix to not 2023-05-09 22:07:46 -04:00
Carol (Nichols || Goulding) e60f703e95
fix: Rename router2 to router
Including an alias and a test for continuing to support `influxdb_iox
run router2`.
2023-05-09 22:01:39 -04:00
Carol (Nichols || Goulding) 6daf5660b4
fix: Rename querier2 to querier
Just some test helpers; there never was an `influxdb_iox run querier2`
command so no alias or test needed.
2023-05-09 22:01:06 -04:00
dependabot[bot] d99444fb2e
chore(deps): Bump console-subscriber from 0.1.8 to 0.1.9
Bumps [console-subscriber](https://github.com/tokio-rs/console) from 0.1.8 to 0.1.9.
- [Release notes](https://github.com/tokio-rs/console/releases)
- [Commits](https://github.com/tokio-rs/console/compare/console-subscriber-v0.1.8...console-subscriber-v0.1.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-10 01:59:08 +00:00
Stuart Carnie a06419726b
feat: Add API to parse an InfluxQL field for testing 2023-05-10 11:21:34 +10:00
Dom 3f0e7745c2
Merge branch 'main' into dom/rpc-client-error-split 2023-05-09 14:41:12 +01:00
Dom 4af76cbe02
Merge pull request #7692 from influxdata/cn/custom-partitions-start
feat: If namespace or table partition templates are specified, use those
2023-05-09 14:03:44 +01:00
Dom Dwyer 01205e9671
refactor: assert Column.table_id matches
Include an invariant assert when adding a Column to a TableSchema,
ensuring the table IDs match.
2023-05-09 14:55:04 +02:00
Dom Dwyer 18c6d9e306
refactor: remove unnecessary "to_owned()" call
This method now takes an owned name, so no need to call to_owned()!
2023-05-09 14:55:03 +02:00
Dom Dwyer ab666ea5fa
refactor: owned ColumnsByName constructor only
Refactors the From<BtreeMap> impl that accepted a &str name for
ColumnsByName construction, instead allowing only the owned String, and
updating the test that makes use of it appropriately.
2023-05-09 14:55:03 +02:00
Carol (Nichols || Goulding) 23c0110b32
feat: Create newtypes for different partition templates
So that the different kinds aren't mixed up. Also extracts the logic
having to do with which template takes precedence onto the
PartitionTemplate type itself.
2023-05-09 14:55:02 +02:00
Carol (Nichols || Goulding) ebceabb608
feat: Add an assertion for the new invariant that namespace partition templates never change 2023-05-09 14:55:02 +02:00
Carol (Nichols || Goulding) 70dca8f60b
fix: Pass the NamespaceSchema through the dml write traits 2023-05-09 14:55:02 +02:00
Carol (Nichols || Goulding) c062d2d890
fix: Change NamespaceResolver to return the whole cached NamespaceSchema
Rather than picking out the ID and partition template to be passed
around separately
2023-05-09 14:55:01 +02:00
Carol (Nichols || Goulding) 28d4f4743c
refactor: Move PartitionTemplate and friends to their own module 2023-05-09 14:55:01 +02:00
Carol (Nichols || Goulding) e8a480f5f6
fix: Give up ownership of Column when adding to a table
To enable reuse of existing allocations rather than borrowing, creating
new allocations, then dropping them.
2023-05-09 14:55:00 +02:00
Carol (Nichols || Goulding) e8655af52d
fix: Change ColumnsByName::new to enable taking ownership if caller wants to give it 2023-05-09 14:55:00 +02:00
Carol (Nichols || Goulding) 1f42fd8ebf
fix: Move column types to their own module and encapsulate more details 2023-05-09 14:55:00 +02:00
Carol (Nichols || Goulding) bbf6a5087c
fix: Return an iterator rather than allocating a Vec 2023-05-09 14:54:59 +02:00
Carol (Nichols || Goulding) cc41216382
fix: Undo the addition of a TableInfo type; store partition_template on TableSchema 2023-05-09 14:54:59 +02:00
Carol (Nichols || Goulding) 596673d515
refactor: Create a new ColumnsByName type to abstract over TableSchema columns
And allow usage of just the columns when that's all that's needed
without leaking the BTreeMap implementation detail everywhere
2023-05-09 14:54:58 +02:00
Carol (Nichols || Goulding) b5af971190
fix: Make NamespaceSchema::new_empty_from rather than From::from
To avoid implying that this constructor caches the tables.
2023-05-09 14:54:58 +02:00
Carol (Nichols || Goulding) 1f1dcc947d
fix: Don't change how the compactor gets the table schema 2023-05-09 14:54:58 +02:00
Carol (Nichols || Goulding) 58d9c40ffd
feat: If namespace or table partition templates are specified, use those 2023-05-09 14:54:57 +02:00
Carol (Nichols || Goulding) c1a8408572
fix: Consolidate the default partition template; remove --partition-key-pattern CLI option 2023-05-09 14:54:57 +02:00
Carol (Nichols || Goulding) 2aa8713d1d
fix: Remove partition TemplatePart::Table; partitioning is already per-table 2023-05-09 14:54:57 +02:00
Dom Dwyer 6aa657a649
refactor(router): separate RPC client error types
This commit splits out the RPC-request-centric errors in RpcWriteError
into their own RpcWriteClientError type.

This improves the separation of concerns - an RpcWriteError comes from
the RPC write handler, whereas an RpcWriteClientError comes from an
underlying client. It's definitely less confusing!
2023-05-09 14:33:56 +02:00
Dom e60babfc06
Merge pull request #7049 from influxdata/cn/delete-experiments
fix: Small remaining cleanups from the big deletion PR
2023-05-09 10:23:55 +01:00
Dom 372ec8ef96
Merge branch 'main' into cn/delete-experiments 2023-05-09 10:17:30 +01:00
Dom 664cbddfff
Merge pull request #7768 from influxdata/cn/rename-compactor-2
fix: Rename /.*compactor2.*/i to compactor
2023-05-09 10:13:44 +01:00
Carol (Nichols || Goulding) 9229ce5668
fix: Rename compactor2_test_utils to compactor_test_utils 2023-05-09 11:02:11 +02:00
Carol (Nichols || Goulding) 45493b91e5
fix: Rename ioxd_compactor2 to ioxd_compactor 2023-05-09 11:02:11 +02:00
Carol (Nichols || Goulding) dd9c5d1b13
fix: Rename compactor2 to compactor 2023-05-09 10:58:55 +02:00
kodiakhq[bot] 3852b2ee64
Merge pull request #7767 from influxdata/cn/rename-more-ingester2
fix: Rename ioxd_ingester2 and ingester2_test_ctx
2023-05-09 08:56:28 +00:00
Stuart Carnie 3c25272eeb
chore: More cleanup 2023-05-09 13:00:12 +10:00
Stuart Carnie 707a700481
chore: Remove unnecessary Result type 2023-05-09 12:59:56 +10:00
Stuart Carnie 54c063cc67
fix: field_and_dimensions doesn't error 2023-05-09 12:48:22 +10:00
Stuart Carnie 01744865b2
fix: Don't skip explicit reference to Tag fields 2023-05-09 12:47:24 +10:00
Carol (Nichols || Goulding) 6000d1e8d4
fix: Remove unused crates 2023-05-08 20:24:56 -04:00