[core][spark] Keep vector-store files of touched ranges in Data Evolution MERGE #11458
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 294 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.340
Real PR Conversation Timeline
1 comments
"Review active on #11458"
general
weight: 0.35
LuciferYang
Purpose
close #11456
A Data Evolution MERGE keeps only the files of touched row-id ranges. Vector-store files roll like blob files, so a range can hold several, but only blob files were mapped to their range. Vector files starting inside a touched range were dropped: updating another column failed the row-count check, and updating the vector column wrote NULL into the rest of the range.
MergeIntoPaimonDataEvolutionTablemaps vector-store files and keeps the range start, since the vector column may be backfilled from a later row.DataEvolutionSplitReaddrops vector-store files holding no read field when the group has a normal file.For vector-store-only groups, incremental reads read by range when the files cover different rows; delta scans, and scans without deletion vectors, keep the group instead of failing to plan.
#11156 keeps this mapping blob-only, in
DataEvolutionMergeMetadata.summarizeand both inline fallbacks; whichever PR merges second adds vector-store files to all three.Tests
RowTrackingTestBase, each with ON_ROW_IDand ONid, setting a normal or the vector column:- "merge into keeps vector files that start inside a touched range": a 4000-row range whose vector file rolls at 1 kb, merged on row 1000; checks the other 3999 rows' vectors.
- "merge into a range whose vector column is backfilled from a later row": the layout from the review.
VectorStoreTableTest:-
testReadWithoutAVectorColumnBackfilledFromALaterRow: readsidandid, embeddingfrom splits planned for all columns, and_ROW_ID.-
testReadOfARenamedVectorColumnNextToABackfilledOne: files are matched by field id.-
testIncrementalRowIdReadOfVectorOnlyChanges,testIncrementalReadOfVectorOnlyChangesWithAPartialUnreadColumn: every row of the range is read, with and without a pushed-down row range.-
testStreamingReadOfANormalColumnOverVectorOnlyChanges, with and without deletion vectors: the next plan reads four rows with NULLid, and rows 2 and 3 forembedding_v2.-
testFileCreationTimeScanOfVectorOnlyChangesWithDeletionVectors: planning fails, as on master.DataEvolutionFileStoreScanTest.testReadTypePruningKeepsVectorOnlyGroupWithoutReadField: delta scans, or any scan without deletion vectors, keep both vector files; with deletion vectors, other scans still throw.