[core] Read data-evolution deltas that contain only blob files #10643
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
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.345
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10643"
general
weight: 0.35
LuciferYang
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.blobfiles. 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_IDor 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.pruneByReadTypekeeps a group of only blob files whole, without looking for an anchor.DataEvolutionSplitReademits every row of such a group. A blob file whose column is not read is opened only when_SEQUENCE_NUMBERis 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.Groups of only vector-store files keep their current behavior.
Tests
BlobUpdateTestBase: after aMERGE INTOthat updates only the blob column,paimon_incremental_queryover 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_NUMBERwith and without the BLOB projection.DataEvolutionFileStoreScanTest#testReadTypePruningKeepsDedicatedOnlyGroupnow 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