Repository navigation
Add unordered stream modifier - #111794
Conversation
|
Workflow [PR], commit [1223514] Summary: ✅
AI ReviewSummaryThis PR adds Findings❌ Blockers
Final VerdictChanges requested. LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 153/162 (94.44%) · Uncovered code |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 423/458 (92.36%) · Uncovered code |
…ansform and used PartitionCursor
| sort_settings, | ||
| /*is_sorting_for_merge_join=*/false)); | ||
| /// Commit-order sort (_block_number, _block_offset); skipped for unordered streams (ordering holds only between snapshots). | ||
| if (!unordered) |
There was a problem hiding this comment.
STREAM CURSOR only stays correct while the emitted rows are a prefix in commit order. Once this branch skips the _block_number / _block_offset sort, a merged part can legally emit (block 2, offset 0) before later rows from (block 1, offset N) because the physical read order is the table's ORDER BY, not commit order.
BuildUnorderedStreamingChunkCursorTransform keeps only the maximum cursor seen in each emitted chunk, and buildPartitionFilter resumes by dropping every row <= that cursor. If a client checkpoints after the first chunk, the later (1, *) rows from the same snapshot are filtered out even though they were never delivered. Please either reject STREAM UNORDERED CURSOR ... (or otherwise disable resumable cursors on unordered reads), or keep a monotone commit-order checkpoint on any path that promises cursor-based resume semantics.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units1043 translation units recompiled, 8429 s compile time in total, 1043 of them have a recent master baseline. |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add STREAM UNORDERED modifier: skip the per-snapshot commit-order sort
depends on #110653
(not for functional reason, only test)
cc @alesapin @Michicosun