Repository navigation
[Data] Iceberg DSv2 [15/15]: Route reads of added and widened columns through Ray's Parquet reader - #68449
Draft
AarryaSaraf wants to merge 1 commit into
Draft
[Data] Iceberg DSv2 [15/15]: Route reads of added and widened columns through Ray's Parquet reader#68449AarryaSaraf wants to merge 1 commit into
AarryaSaraf wants to merge 1 commit into
Conversation
… Ray's Parquet reader Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aarrya <[email protected]>
AarryaSaraf
force-pushed
the
iceberg-opt-11-evolved-columns
branch
from
November 24, 2026 01:24
c1a24e3 to
744383f
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
The Parquet route now also takes columns whose type widened or that were added after a file was written. Ray's Parquet reader is given the current types, so it widens old values and reads a missing column as nulls, as
ArrowScandoes. Renamed columns and reused names still go toArrowScan. 15 of 15 in the Iceberg DSv2 stack (#66181).Before
[12/15] routes a read only when every column has the same field ID, name and type in every schema the table has had. Any evolution sends the whole read to
ArrowScan, even a plaininttolongwidening.After
Files:
_internal/datasource_v2/formats/iceberg/iceberg_parquet_route.py,iceberg_file_reader.py.inttolong,floattodouble, or a decimal's precision.ParquetFileReader, which casts older files' values up and fills an absent column with nulls.Data flow unchanged: more reads qualify for [12/15]'s route.
Subsystems
IO (
formats/iceberg/).Testing
pytest python/ray/data/tests/datasource/test_iceberg.py: 224 passed at this PR's head (pyarrow 24.0.0, PyIceberg 0.11.1). The new tests cover:col_awent frominttolong, take the route and read asArrowScandoes (nulls, widened values), with and without a filter;ArrowScan.ruff 0.8.4 (default and
--select I), black 22.10.0, pydoclint 0.9.1 and pyrefly 0.51.0 (CI's environment) are clean.Not a duplicate: apart from this stack, no open PR moves
read_icebergto Datasource V2. I searched open PRs with "iceberg" in the title on 2026-11-21; the only other one, #68252, fixes Iceberg writes on actor pools.AI assistance (Claude Code) was used. I have reviewed every changed line and ran the tests above locally.
Signed-off-by: Aarrya [email protected]
🤖 Generated with Claude Code