fix(serde): align DataFile JSON with Java core - #975
Open
kamcheungting-db wants to merge 5 commits into
Open
kamcheungting-db wants to merge 5 commits into
kamcheungting-db wants to merge 5 commits into
Conversation
This was referenced Sep 30, 2026
kamcheungting-db
force-pushed
the
datafile-serde-java
branch
from
September 30, 2026 09:39
d38395c to
2c48f02
Compare
This branch has not been deployed
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.
Summary
Make core
DataFileJSON compatible with Java Iceberg.This PR only changes
DataFileJSON behavior. CoreFileScanTaskserde is added separately in #939.Changes with examples
Partition data
Continue accepting positional arrays:
Also accept Java field-ID objects, which do not depend on field order:
Binary metadata
Write binary values as Java-compatible hexadecimal strings:
Previously these values were written as JSON byte arrays.
Content names
Accept both current lowercase values and older Java enum-style values:
Integers
Reject values that are not actual, in-range JSON integers. For example:
Previously generic JSON conversion could coerce this to
1.The parser also accepts a missing
partition, accepts null metric maps, rejects duplicate metric keys, and validates partition value types during serialization.Stack
This is 2 of 4 and depends on #974:
DataFileserde into core (refactor(serde): move DataFile JSON serde into core #974)DataFileJSONFileScanTaskserde (feat(serde): add core FileScanTask JSON support #939)Each PR targets
main; later PRs contain the commits from earlier PRs.Testing
DataFilefocused tests: 23 passed across core and REST.