← Back to Pull requests

[core] Read data-evolution deltas that contain only blob files #10643

Closed
unknown closed this pull request without merging on Oct 23, 2026 07:42 UTC
View on GitHub
unknown unknown commented on Oct 18, 2026 16:07 UTC
Author

Purpose

close #10406

On a data-evolution table, a commit that writes only blob columns, for example a Spark MERGE INTO ... WHEN MATCHED THEN UPDATE SET t.picture = s.picture, adds a snapshot that holds only .blob files. The normal file of those rows is in an earlier snapshot. An incremental read of that snapshot (streaming read, paimon_incremental_query) planned the blob files alone and failed unless it read only blob columns: reading a normal column, _ROW_ID or a partition column threw at read time, and with deletion vectors on it already threw at planning because the group has no anchor file.

Such a delta now reads like a delta that updates normal columns: it emits its rows with the row-tracking fields set and the columns it did not write NULL.

  • DataEvolutionFileStoreScan.pruneByReadType keeps a group of only blob files whole, without looking for an anchor.

  • DataEvolutionSplitRead emits every row of such a group. A blob file whose column is not read is opened only when _SEQUENCE_NUMBER is read, with the blob as a descriptor, so each row gets the version of the newest file of that column holding a value for it, the same as when the column is read. With several blob columns the version comes from one of them, the same one for every projection. A group without a normal file takes its row range from all of its files and has no deletion vector.

  • A single blob file is read like a group of blob files, so its placeholders are resolved. In blob compaction, a placeholder in a single blob file is now written as NULL, as it already was in overlapping files.
  • Groups of only vector-store files keep their current behavior.

    Tests

  • BlobUpdateTestBase: after a MERGE INTO that updates only the blob column, paimon_incremental_query over that snapshot returns the row with NULL normal columns and its _ROW_ID.

  • MultipleBlobTableTest: stream scans over a delta of only blob files, with normal, _ROW_ID, empty and blob read types, with and without deletion vectors; blob columns covering different rows of the delta, read with the full row type and with one of them projected; a partitioned table; incremental reads over two blob-only deltas and over a blob file holding placeholders, which return the same _SEQUENCE_NUMBER with and without the BLOB projection.

  • DataEvolutionFileStoreScanTest#testReadTypePruningKeepsDedicatedOnlyGroup now also checks that such a group is kept whole for any projection, with and without deletion vectors.
  • All of them fail on master.

    API and Format

    no

    Documentation

    no

    Diff: 321 lines (+240 / -81) across 4 files Reviewer: LuciferYang Review duration: 6695m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.42 · 321 lines diff across 4 files
    0.42
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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
    Diff Size diff_size
    0.345
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10643"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 41.9% (MEDIUM) · Higher = larger blast radius
    41.9%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.6% · Safe to merge
    16.6%
    Repository