Repository navigation
[Data] Iceberg DSv2 [13/15]: Pickle scan tasks without per-column statistics - #68447
Draft
AarryaSaraf wants to merge 1 commit into
Draft
AarryaSaraf wants to merge 1 commit into
AarryaSaraf wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Aarrya <[email protected]>
AarryaSaraf
force-pushed
the
iceberg-opt-9-strip-task-stats
branch
from
November 24, 2026 01:24
5d23f43 to
7eaeedb
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
Each manifest row's pickled
FileScanTasknow leaves out its data and delete files' per-column statistics. Listing has already used them, and the reader never reads them. They are most of a task's bytes. 13 of 15 in the Iceberg DSv2 stack (#66181).Before
A task carries
column_sizes,value_counts, null and NaN counts and lower and upper bounds for every column. A task for a one-row file of a 1,000-column table pickles to 85,746 B. Each attached position delete file adds 370 B. Those bytes travel through the bin packer and to every read task.After
Files:
_internal/datasource_v2/formats/iceberg/iceberg_manifest.py._without_column_statscopies the task's data file and delete files with those six fields set toNonebefore pickling.ray.cloudpickle, PyIceberg 0.11.1).DataFiledifferently, the file is pickled with its stats.Data flow unchanged: smaller rows.
Subsystems
IO (
formats/iceberg/iceberg_manifest.py).Testing
pytest python/ray/data/tests/datasource/test_iceberg.py: 220 passed at this PR's head (pyarrow 24.0.0, PyIceberg 0.11.1). The new test checks that the pickled task and its delete file come back without column sizes or bounds, while the planned ones keep theirs. 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