feat(clickpipes): add advanced CDC table mappings - #740
Open
sdairs wants to merge 1 commit into
Open
Conversation
37 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MySQL, MongoDB, and BigQuery CDC creates can now send the full table-mapping objects supported by ClickHouse Cloud through repeatable
--table-mapping-jsonflags. Simple--table-mappingvalues remain supported and can be mixed with JSON mappings; requests preserve simple-first ordering, optional and explicitly empty values, MySQLpartitionKeyversuspartitionByExpr, and BigQuery mappings for both service-account and workload-identity authentication.The CLI strictly validates each source-specific object before reading credential or CA files or issuing an HTTP request. It rejects malformed JSON, unknown fields and engine values, missing or blank identifiers, contradictory custom-sorting settings, blank array entries, and duplicate MySQL arrays. The preceding API prerequisite exposes analyzer-checked engine value lists for CLI validation.
Documentation now includes complete examples for all three sources and explains table engines, sorting-key behavior, and the two MySQL partition fields.
Validation:
cargo fmt --all --checkcargo clippy -p clickhousectl -- -D warningscargo test -p clickhousectl(1,085 unit tests passed, 1 ignored; 319 cloud request-shape tests passed, 1 ignored; all local and telemetry binaries passed)cargo check -p clickhousectl --no-default-featurescargo clippy -p clickhousectl --all-targets --no-default-features -- -D warningscargo clippy -p clickhouse-cloud-api -p clickhouse-openapi-analyzer --all-targets -- -D warningscargo test -p clickhouse-cloud-api -p clickhouse-openapi-analyzerpython3 -m unittest discover -s scripts/tests -p 'test_*.py'(90 tests passed in the aggregate; the sole sandbox-blocked temporary-Git fixture passed on an exact outside-sandbox rerun)Closes #691