Repository navigation
Add incremental rmv core - #114152
Add incremental rmv core#114152
Conversation
|
Workflow [PR], commit [4be8cda] Summary: ✅
AI ReviewSummaryThis PR adds Findings❌ Blockers
Tests
Final VerdictChanges requested before merge. LLVM Coverage ReportMeasured on commit 4be8cda.
Changed lines: Changed C/C++ lines covered: 299/311 (96.14%) · Uncovered code |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes451 object files changed (+98.54 KiB total), 0 added.
716 more object files are built by the master warmup baseline only (it builds every object-file target, a pull request build only Compile time of recompiled translation units1742 translation units recompiled, 10036 s compile time in total, 1742 of them have a recent master baseline. |
| refresh_context->setSetting("enable_parallel_replicas", Field(UInt64{0})); | ||
| refresh_context->setSetting("parallel_replicas_for_non_replicated_merge_tree", Field(UInt64{0})); | ||
|
|
||
| stream_cursor = execution.znode.cursor; |
There was a problem hiding this comment.
execution.znode.cursor is reused here without checking whether it still belongs to the same source table instance. Refreshable materialized views intentionally do not keep a source-table dependency, so DROP TABLE src; CREATE TABLE src ... (or any other source replacement that preserves the name) is allowed. The new MergeTree starts its _block_number sequence from scratch, but the old cursor survives in the RMV znode, so the next incremental refresh will treat the recreated source as already consumed and silently skip its rows.
Please persist a stable source identity (for example the resolved source UUID) alongside the cursor and clear or reject the cursor when that identity changes.
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
|
@SmitaRKulkarni @Michicosun — ClickGap found the following in this PR:
Close anything that's wrong or already addressed. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Refreshable materialized views can now refresh incrementally with REFRESH ... APPEND INCREMENTAL, appending only the rows committed to the source table since the previous refresh instead of re-reading the whole source.
depends on #111794
cc @alesapin @Michicosun
Workflow [PR]
Sync PR [sync-upstream/pr/114152]