Preserve known Iceberg data and delete file sizes #17156
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.45) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 402 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.359
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #17156"
general
weight: 0.35
res-life
Related issue: N/A. Related PR: #17157 (footer caching and connection reuse).
Description
Iceberg scan tasks contain the sizes of data and delete files, but reader setup discarded them. Creating an S3 input with only its path makes the client discover its length with an extra HEAD request.
Pass each task's known size through the length-aware
RapidsFileIOAPI and retain it as anOptionalLongthroughout the input-file wrappers. Reject zero and negative values in bothIcebergInputFileandIcebergFileIO, before calling the delegate. A supplied length must be exact and strictly positive. Callers without an exact length must use the overload without a length, orOptionalLong.empty(), to retain delegate lookup.The shared API was added by the merged https://github.com/NVIDIA/cudf-spark-jni/pull/5559. Validation now uses published JNI snapshot
26.12.0-20261127.042744-56, with the unmodified CUDA 12 artifact. #17157 can land independently.Validation and performance
On local Linux with JDK 17, Spark 3.5.9, and an RTX 5880 Ada GPU, including main
9d2a2d162081:IcebergInputFileSuitetests passed: zero and negative lengths (includingLong.MIN_VALUE) are rejected; both shared FileIO overloads reject them before delegate access; positive known lengths, including one byte, avoid delegate lookups; and unknown lengths use the actual file size.GpuMultiThreadIcebergParquetReaderSuitetests and all threeIcebergS3InputFileSuitetests passed. A separate CPU/GPU probe passed for coalescing and multithreaded readers, dictionary predicates, repeated reads, and position deletes, with matching results and GPU scan assertions. All 12 tests passed on each of Iceberg 1.9.2 and 1.10.1, with no skipped or canceled tests.Static shim source selection passed for all 34 current profiles at head
8078c62997edagainst main9d2a2d162081. The bounded related-PR advisory completed five joint checks without new static findings; candidates beyond the five-peer limit remain unchecked. These checks do not replace premerge runtime validation.Remaining validation
AI assistance: Codex helped implement and validate the changes and prepare this description.
Checklists
Documentation
Testing
(Please provide the names of the existing tests in the PR description.)
Performance