[core] Slice lookup changelog rows instead of copying them #1480
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 247 lines diff across 3 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.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1480"
general
weight: 0.35
JeonDaehong
Purpose
Linked issue: none, follows #1474
With
changelog-producer = lookup, every changelog row is built withtake, which copies all of its columns into a new one-row batch, and a key with several changes is concatenated once more. Since #1474 the reader concatenates changelog rows into output batches anyway, so these copies are not needed.Brief change log
source_rowreturns a one-row slice of the source batch instead of atakecopy.concat_batches.PK table,
changelog-producer = lookup, compaction time, in-memory FileIO, release build. Measured in one binary with the old path switched back on by env vars, over 3 alternating rounds (parent → this PR):row-deduplicate,ignore-update-before): 846–851 → 741–764 ms, peak RSS 83–86 → 78–85 MBTests
test_changelog_rows_do_not_keep_released_source_batches: merged source batches are released while changelog rows are pending, and a lone changelog row does not share its source buffer.lookup_changelog_charges_a_lone_row_for_its_own_value: lookup compaction under a 64 KiB memory limit, Parquet and ORC.Both fail without the copy. Ran the ci.yml steps (fmt, clippy, msrv, unit, rest-server, integration, datafusion, python, go).
API and Format
None.
Documentation
None.