Skip to content

Revert "Revert "Iceberg variant type"" - #125458

Merged
alexey-milovidov merged 5 commits into
masterfrom
revert-125455-revert-117198
Oct 13, 2026
Merged

alexey-milovidov merged 5 commits into
masterfrom
revert-125455-revert-117198

Conversation

@alexey-milovidov

@alexey-milovidov alexey-milovidov commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Reverts #125455


Workflow [PR]
Sync PR [sync-upstream/pr/125458]

Version info

  • Merged into: 26.10.1.2329-master (included in 26.10 and later)

@clickhouse-gh

clickhouse-gh Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b63c208]

Summary: ✅


AI Review

Summary

This PR reverts the revert of Iceberg variant support, updates the integration runner to Spark 4.0 / Delta 4.0, adds a Parquet VARIANT interoperability test, and removes the old Spark sort-order metadata hack that Spark 4 no longer needs. I read the current diff, the touched code paths, and the prior discussion thread, and I did not find any unresolved correctness, safety, or coverage problems in the current state of the PR.

Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added pr-not-for-changelog This PR should not be mentioned in the changelog comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Oct 12, 2026
scanhex12 and others added 2 commits October 13, 2026 08:10
Spark 4.0 reads a Parquet timestamp with `isAdjustedToUTC = true` into a
`timestamp_ntz` column instead of failing with `Unable to create Parquet
converter`, so `test_writes_timestamp_ntz_annotation_nested` now checks the
values read from `sc`; the annotation itself is still checked via the schema
of the written file.

Delta 4.0 creates a table with `delta.enableChangeDataFeed` on writer
version 7 with the explicit features `changeDataFeed`, `invariants` and
`appendOnly`, which the kernel supports, so the write is no longer rejected.
`test_write_to_table_with_unsupported_writer_feature_is_rejected` now uses a
`CHECK` constraint, which raises the protocol to the legacy writer version 3
with `checkConstraints`, unsupported by the kernel.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125458&sha=cd3181856b72be9a2e883ac71a75e28333eab0e8&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20flaky%29
#125458

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rt-117198

# Conflicts:
#	tests/integration/test_storage_delta/test.py
#	tests/integration/test_storage_delta/test_writes_interop.py
@clickhouse-gh

clickhouse-gh Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Commit b63c208e643ffb552c2b67c00f8d7269818cd10a was not compared: the CI logs cluster did not answer (exception 241, code 500: { "meta": [ { "name": "file", "type": "String" }, { "name…).

See the job log for details.

Delta 4.0 writes a `_delta_log/<version>.crc` checksum file next to each
commit, so the tests that count the files of a table written by Spark
(`test_single_log_file`, `test_partition_by`, `test_checkpoint`,
`test_multiple_log_files`, `test_system_table`, `test_azure_empty_blob_path`)
saw one extra file per commit. Disable
`spark.databricks.delta.writeChecksumFile.enabled`, as already done in
`test_storage_delta_disks` and `test_storage_delta_shuffles`.

https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=125458&sha=5490512c26ee086f0ce3d6b3df8a34b12719afab&name_0=PR&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20targeted%29
#125458

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Oct 13, 2026
Merged via the queue into master with commit b262d02 Oct 13, 2026
176 checks passed
@alexey-milovidov
alexey-milovidov deleted the revert-125455-revert-117198 branch October 13, 2026 22:14
@robot-ch-test-poll3 robot-ch-test-poll3 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 13, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Oct 14, 2026
The integration runner now writes the tables with Spark 4.0 and
paimon-spark-4.0 1.3.2 (ClickHouse#125458) instead of paimon-spark-3.5 1.1.1.
Paimon 1.3.2 commits UPDATE on an append table with deletion vectors as
one OVERWRITE snapshot that carries the deletion vector, instead of an
APPEND snapshot followed by a COMPACT snapshot that adds it, so every
snapshot after the update moves down by one id.

Update the expected layouts, refuse the targeted read of the OVERWRITE
snapshot 2, and use snapshot 1, the only one without deletion vectors,
as the targeted-read control.

With this writer no test reached the check on skipped COMPACT snapshots
any more. Add test_skipped_compaction: a partial compaction of one
partition commits a COMPACT snapshot whose index manifest still lists the
other partition's deletion vector, and an incremental read with its
cursor just before it must refuse and keep the cursor.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clickhouse-gh clickhouse-gh Bot added comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... and removed comp-datalake Data lake table formats (Iceberg/Delta/Hudi) integration. labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-iceberg Apache Iceberg tables: reading and writing Iceberg metadata (snapshots, manifests, schema evoluti... pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants