← Back to Pull requests

feat(scan): carry the data file's split offsets on FileScanTask #3704

Open
unknown opened this pull request with 204 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 16, 2026 22:11 UTC
Author

Which issue does this PR close?

<!--
We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example Closes #123 indicates that this PR will close issue #123.
-->

  • Closes #.
  • What changes are included in this PR?

    An engine that splits a data file into several read tasks must cut on the row-group boundaries the writer recorded as split_offsets (spec field 132), or a split can land inside a row group and one of the two tasks opens the file for nothing. FileScanTask had no way to hand them on, so an engine planning with iceberg-rust had to split arithmetically.

  • FileScanTask::split_offsets: Option<Vec<i64>>, builder default, accessor, serde in both directions; None when the writer recorded none.

  • Populated from the manifest entry's DataFile in ManifestEntryContext:: into_file_scan_task.

  • TableTestFixture::setup_manifest_files_with_split_offsets and a scan test covering recorded, empty and absent offsets; the serde round-trip test carries the field.
  • <!--
    Provide a summary of the modifications in this PR. List the main changes such as new features, bug fixes, refactoring, or any other updates.
    -->

    Are these changes tested?


  • Added unit tests

  • <!--
    Specify what test covers (unit test, integration test, etc.).

    If tests are not included in your PR, please explain why (for example, are they covered by existing tests)?
    -->

    AI Disclosure


    Used claude
    <!--
    https://iceberg.apache.org/contribute/#guidelines-for-ai-assisted-contributions
    -->

    Diff: 204 lines (+153 / -51) across 2 files Reviewer: JeonDaehong Review duration: 20544m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.36 · 204 lines diff across 2 files
    0.36
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.318
    Real PR Conversation Timeline
    1 comments
    "Review active on #3704"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 36.3% (MEDIUM) · Higher = larger blast radius
    36.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 19.4% · Safe to merge
    19.4%