Skip to content

[iceberg] Refuse time precisions the mirror cannot publish - #9467

Merged
JingsongLi merged 1 commit into
apache:masterfrom
plusplusjiajia:gh-iceberg-refuse-time-precision
Aug 30, 2026
Merged

[iceberg] Refuse time precisions the mirror cannot publish#9467
JingsongLi merged 1 commit into
apache:masterfrom
plusplusjiajia:gh-iceberg-refuse-time-precision

Conversation

@plusplusjiajia

Copy link
Copy Markdown
Member

Purpose

Iceberg compatibility converts only TIME precision 0-3 (IcebergDataField, IcebergConversions), but no schema-level rule enforces it. A TIME(4..9) column passes create, alter and commit with Iceberg metadata enabled, and only fails while the metadata is built - after the Paimon snapshot is already committed, so the caller sees a failure while the data is durable and the Iceberg view is missing. This validates the precision where the other Iceberg type rules live, for the current schema and for the historical schemas the mirror publishes, and documents the TIME mapping.

Tests

SchemaManagerTest: create, enable-by-alter and historical-schema paths for TIME(4), TIME(6), TIME(9); TIME(3) still accepted.

@plusplusjiajia
plusplusjiajia marked this pull request as ready for review August 29, 2026 16:35
@plusplusjiajia
plusplusjiajia force-pushed the gh-iceberg-refuse-time-precision branch from dd10235 to 75528ce Compare August 29, 2026 16:36
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 0e974c8 into apache:master Aug 30, 2026
27 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants