Repository navigation
Conversation
|
Workflow [PR], commit [39c21ce] Summary: ✅
AI ReviewSummaryThis PR adds a broad stateless/performance test suite for Findings
Final Verdict |
The refreshable MV reads a MergeTree table, and with parallel replicas the INSERT SELECT into the DeltaLake target is executed on every replica, which commit-conflicts: ClickHouse#120714 Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120518&sha=61dd2f23409bbd55547ae22c1d3ae8238fb4bc07&name_0=PR&name_1=Stateless%20tests%20(amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel) PR: ClickHouse#120518 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Every INSERT into a DeltaLake table in functional tests and fuzzers now reaches the writer. The gate tests set the setting off explicitly and pin the compiled default via system.settings. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ke writes Co-Authored-By: Claude Fable 5.1 <[email protected]>
… 05230 (style check forbids 'fail' in test names) Co-Authored-By: Claude Fable 5.1 <[email protected]>
…time budget); 05229: accept one or two async flushes Co-Authored-By: Claude Fable 5.1 <[email protected]>
…e so previous-release jobs (older than 26.7) keep booting Co-Authored-By: Claude Fable 5.1 <[email protected]>
…the INSERT Co-Authored-By: Claude Fable 5.1 <[email protected]>
… keeps the session's writes setting Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…h writes off Co-Authored-By: Claude Fable 5.1 <[email protected]>
The refreshable MV reads a MergeTree table, and with parallel replicas the INSERT SELECT into the DeltaLake target is executed on every replica, which commit-conflicts: ClickHouse#120714 Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120518&sha=61dd2f23409bbd55547ae22c1d3ae8238fb4bc07&name_0=PR&name_1=Stateless%20tests%20(amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel) PR: ClickHouse#120518 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Nothing is committed at flush time. The INSERT itself is still acknowledged: ClickHouse#120717 Co-Authored-By: Claude Fable 5.1 <[email protected]>
…as lane Pin the refresh definitions to enable_parallel_replicas = 0 instead of skipping the test: ClickHouse#120714 Co-Authored-By: Claude Fable 5.1 <[email protected]>
Master already enables the setting there through its alias allow_experimental_delta_lake_writes. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ive MV and async insert cases Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ource-type tests - 05225: assert the committed `partitionValues` and the directory of every data file, including a NULL partition. - 05226: print the rows of every file per partition, so a byte budget shared across partitions is caught. - 05231: profile constraint kill switch (`allow_delta_lake_writes = 0 READONLY`) against SET, the alias and a SETTINGS clause; `readonly = 1` and `readonly = 2` users. - 05232: source types without a Delta counterpart (UInt64, Int128, UInt256, UUID, Enum, IPv4/IPv6, LowCardinality, FixedString, Date, DateTime64, Bool, JSON, Variant, Dynamic, Nullable, Decimal, Map) through `accurateCast` on INSERT. Co-Authored-By: Claude Fable 5.1 <[email protected]>
The flaky-check lane under ASan timed out (> 180 s): the test started one `clickhouse-local` per data
file to count rows, about sixty process starts. Each report now reads every data file of the table with
one `file('**/*.parquet')` query and derives the per-file and per-partition row counts from it.
CI: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120518&sha=892cd2ad12c8a1a3ef11e59ccb4d2e93ff54ea52&name_0=PR&name_1=Stateless%20tests%20(amd_asan_ubsan%2C%20flaky%20check)
Co-Authored-By: Claude Fable 5.1 <[email protected]>
`allow_delta_kernel_rs = 0` is deprecated (ClickHouse#122021), so the error text of the legacy path is not a contract worth pinning. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…w commit to its fix - 05227: a Delta `boolean` column fed from an `Int32` source: 0 and 1 round-trip, every other value is stored as `true` with and without the accurate cast (`accurateCast` to `Bool` accepts every value, so no rejection exists to pin). - 05225: the unpartitioned 0-row INSERT case is dropped; ClickHouse#122092 changes that behaviour and carries its own test. The partitioned case (no version) stays. Co-Authored-By: Claude Fable 5.1 <[email protected]>
…ow case - 05223: after `INSERT ... SETTINGS allow_delta_lake_writes = 1`, a second INSERT of the same session without the clause is rejected again and nothing is written. - 05232: a `UInt256` value above `Int64` max is rejected with `CANNOT_CONVERT_TYPE`. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
The `wr_small` case measured a single 1000-row `INSERT`, so each sample was
one short commit: too short to be stable in perf CI and blind to costs that
only show up after repeated commit-log updates. Reuse
`write_small_commits.sql`, as `iceberg_suite_write.xml` does, so each sample
times five tiny commits against `{database}.wr_small`.
Review comment: ClickHouse#120518 (comment)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0e24fe1 to
64c8c31
Compare
…-stateless-coverage
| " | ||
| report "${ROOT}/both" 0 | ||
|
|
||
| echo "-- a zero limit is rejected up front" |
There was a problem hiding this comment.
This only checks that the query returns BAD_ARGUMENTS; it does not verify the promised “rejected up front” contract. Because ${ROOT}/both already contains a successful commit, a regression that validates delta_lake_insert_max_*_in_data_file = 0 only after opening a writer or emitting a new version/file would still leave this test green.
Please re-check the table state after each zero-limit attempt (or run them against a fresh table) so this case pins failure-before-write, not just the error code.
Stateless tests for Delta Lake writes (
allow_delta_lake_writes), on hand-bootstrappedDeltaLakeLocaltables:05223: setting gate (compiled default off, alias,SET,SETTINGSclause, read-only); nothing is written when rejected.05224: non-append statements and rejected inserts fail closed: no new version, no data file, rows intact.05225: shape of committed_delta_logentries (version naming, one action per line, relativeadd.path,size,partitionValues,dataChange); duplicate and 0-row inserts.05226:delta_lake_insert_max_rows_in_data_fileand the previously untesteddelta_lake_insert_max_bytes_in_data_file.05227: accurate-cast matrix over Delta primitive types.05228: writes through regular and refreshable materialized views.05229:async_insertinto a Delta table.05230: memory and execution-time limits mid-write fail closed; 1000-partition insert bounded.05231: profile constraint kill switch (allow_delta_lake_writes = 0 READONLY) holds againstSET, the alias and aSETTINGSclause;readonly = 1andreadonly = 2users cannot write.05232: source types without a Delta counterpart (UInt64,Int128,UUID,Enum,IPv4,LowCardinality,JSON,Variant,Dynamic,Map, ...) throughaccurateCaston INSERT: what is stored, what is rejected.05233:system.query_logaccounting of committed, rejected and failed Delta INSERTs.tests/performance/delta_lake_write.xml: one large commit and many small commits intoDeltaLakeLocal.allow_delta_lake_writesis enabled in the functional-test profile so every testedINSERTinto a DeltaLake table reaches the writer (the fuzzer profile already enables it).Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/120518]