Repository navigation
Optimize Stream Aligner - #116706
Optimize Stream Aligner#116706
Conversation
|
Workflow [PR], commit [12d94a0] Summary: ❌
AI ReviewSummaryThis PR splits Findings❌ Blockers
Final VerdictChanges requested. The current split-stream pipeline still has correctness/security gaps around watermark ordering and filter handling that should be fixed before merge. LLVM Coverage ReportMeasured on commit 12d94a0.
Changed lines: Changed C/C++ lines covered: 239/257 (93.00%) · Uncovered code |
e7f26cc to
9f69462
Compare
Build profile diff (arm_release)Comparing commit See the job log for details. |
| plan->addStep(std::make_unique<FilterStep>(plan->getCurrentHeader(), filter->actions.clone(), filter->column_name, filter->do_remove_column)); | ||
|
|
||
| if (const auto & filter = reading_context.prewhere_filter) | ||
| plan->addStep(std::make_unique<FilterStep>(plan->getCurrentHeader(), filter->actions.clone(), filter->column_name, filter->do_remove_column)); |
There was a problem hiding this comment.
This external FilterStep now runs before StampPartitionCursorsStep, but it still honors the original remove_prewhere_column flag. A legal query like SELECT count() FROM mt STREAM BOUNDED PREWHERE _block_number therefore erases _block_number here, and the later cursor stamper/aligner immediately fails on getPositionByName(_block_number) instead of executing the stream.
Can we force remove_column = false for _block_number / _block_offset once filters move ahead of cursor stamping, or reject those predicates explicitly?
…pr116706 Add 2 tests for coverage gaps in PR ClickHouse#116706
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
This patch slightly optimizes the
AlignStreamsstreaming plan step.Workflow [PR]
Sync PR [sync-upstream/pr/116706]
Version info
26.10.1.324-master(included in26.10and later)