Spec: clarify Avro encoding for day partition transform in manifests#16446
Draft
laskoviymishka wants to merge 1 commit into
Draft
Spec: clarify Avro encoding for day partition transform in manifests#16446laskoviymishka wants to merge 1 commit into
laskoviymishka wants to merge 1 commit into
Conversation
Documents that writers SHOULD encode `day` partition fields in Avro manifests with `logicalType: date` and readers MUST accept both plain `int` and `int` with `logicalType: date`. The logical Iceberg result type remains `int`. Resolves the ambiguity between the spec's transform result type table (`int`) and the de facto behavior of Java, PyIceberg, and Rust (logical `date`), which has caused real interop failures. Issue: apache#16414 Discussion: https://lists.apache.org/thread/qqw5oog5swmswxqqmp693vz1rw132xb6
Author
|
To connect with past generation of this - #10616 |
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.
Documents that writers SHOULD encode
daypartition fields in Avro manifests withlogicalType: dateand readers MUST accept both plainintandintwithlogicalType: date. The logical Iceberg result type remainsint.Resolves the ambiguity between the spec's transform result type table (
int) and the de facto behavior of Java, PyIceberg, and Rust (logicaldate), which has caused real interop failures.Issue: #16414
Discussion: https://lists.apache.org/thread/qqw5oog5swmswxqqmp693vz1rw132xb6