Repository navigation
Iceberg variant type - #117198
Iceberg variant type#117198
Conversation
|
The new Minor: |
a29a931 to
a750d89
Compare
|
Workflow [PR], commit [92653a5] Summary: ✅
AI ReviewSummaryThis PR upgrades the generic integration runner to Spark PR Metadata
Missing context / blind spots
Findings
Final Verdict
|
…d expect `Dynamic` The test imported the `started_cluster` fixture from `helpers.iceberg_utils`, which fails the style check (unused import and redefinition) and builds its cluster relative to `helpers`. Reuse the cluster of `test_storage_iceberg_with_spark` instead. Parquet variant columns are now read as `Dynamic`, so check that, with objects as `JSON`. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=117198&sha=a750d89583326dfc48b352baecca9ed1c88a66ea&name_0=PR&name_1=Style%20check PR: #117198 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Build profile diff (arm_release)Commit See the job log for details. |
Delta 4.0 writes a `.crc` checksum file next to each commit, which breaks the file counts in the Delta tests. Disable it with `spark.databricks.delta.writeChecksumFile.enabled`. Iceberg 1.11 Spark writers set the data file `sort_order_id` to the write order (apache/iceberg#15832), so the metadata patch that renumbered the sort order to 0 now makes it mismatch the data files. Remove it. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=117198&sha=7d55566536250f6e8697fb194519c50fc5c1d0f8&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20targeted%29 PR: #117198 Co-Authored-By: Claude Opus 5.5 <[email protected]>
ClickHouse#117198 moved the integration runner to Spark 4.0 and delta-spark 4.0. Two tests merged after its last CI run used Spark behaviour that changed as their oracle, and fail on every master run since 188290b. test_writes_timestamp_ntz_annotation_nested expected Spark to refuse reading the ambiguous `sc.a.b` leaf, which ClickHouse writes with the default isAdjustedToUTC=true annotation, into timestamp_ntz. Spark 4.0 reads UTC-adjusted Parquet timestamps into timestamp_ntz without a shift (SPARK-47447), so the pytest.raises block no longer raises. The pyarrow asserts on the written schema are the direct check that the ambiguous path keeps the default annotation, so drop the Spark check and the comments that present a Spark read as the oracle. test_write_to_table_with_unsupported_writer_feature_is_rejected made the table unsupported for writes by enabling Change Data Feed. delta-spark 3.x gave it legacy protocol (1,4), which implies checkConstraints and generatedColumns, both unsupported by delta-kernel. delta-spark 4.0 writes (1,7,[changeDataFeed,invariants,appendOnly]) instead, all supported for writes, so the INSERT is accepted. That is correct for an append-only commit: Spark's table_changes returns the new rows as inserts. Use a CHECK constraint instead: it gives protocol (1,3) on both Spark versions and the kernel refuses it with "Feature 'checkConstraints' is not supported". ClickHouse does not evaluate Delta CHECK constraints, so that refusal has to stay. Assert the feature name, and expect the ADD CONSTRAINT commit in the log. Both tests pass on the Spark 4.0 and on the Spark 3.5 runner jars. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Edited by the nightly changelog CI job following .claude/skills/edit-changelog/SKILL.md. Changelog-revert: 125455 117198 Revert "Iceberg variant type" Changelog-deleted-entry: 117198 [Improvement] [raw] * Support iceberg variant type. Based on parquet variant reader - #117106. [#117198](#117198) ([Konstantin Vedernikov](https://github.com/scanhex12)).
…argeted checks The coverage selection cannot see a test until a `master` coverage run records it, so a test that landed on `master` after the PR's last CI run escapes it. The `Config Workflow` job of the merge queue (which unshallows the repository) now finds the stateless tests and integration test modules changed on the first-parent history of the queue base after the PR head commit time (or after the merge base, if the PR merged `master` since), keeps the 30 stateless and 10 integration ones whose names share most words with the files the PR changes, and stores them. Both merge-queue targeted checks add them to the selection as mandatory tests. The window and ranking follow #126406. Replayed on the merge-queue commits of the two known cases: for #117198 the integration selection includes `test_storage_delta/test_writes_interop.py` and `test_storage_delta/test.py`; for #124131 the stateless selection includes `05339_string_filters_during_scan_parquet_short_dictionary_values`. The merge-queue targeted jobs are no longer cached: their selection depends on the queue entry and the attempt, neither of which is in the digest.
Antalya 26.8 Backport of ClickHouse#117198 - Iceberg variant type
A pull request tested against an older `master` can break tests that landed after its last CI run. ClickHouse#117198 was last tested on 2026-10-11 21:34, merged on 2026-10-12 13:16, and broke two `test_storage_delta` tests added to `master` in between, on every lane, until the automatic revert in ClickHouse#125455. `MergeQueueCI` now runs `Stateless tests (amd_binary, targeted)` and `Integration tests (amd_binary, targeted)` on the merge group, on the `amd_binary` build the queue already makes. They select the tests covering the changed lines of the queued PR, plus the changed tests and the modules owning changed files (integration). The changed stateless tests are left to the merge-queue flaky check, and the tests that failed earlier in the PR are not rerun: its CI already did, and a flaky one would only bounce the PR from the queue. `Targeting` takes the PR number from the merge group head ref and the diff from the PR itself, because the merge group commit is not the PR head. Both jobs stop at 40 minutes from their start: the stateless one via `--global_time_limit` (3 repetitions instead of 50), the integration one via the pytest session timeout, which a targeted check does not treat as a failure. Related: ClickHouse#117198 Related: ClickHouse#125455
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Support iceberg variant type. Based on parquet variant reader - #117106
Workflow [PR]
Sync PR [sync-upstream/pr/117198]
Version info
26.10.1.2199-master(included in26.10and later)