Repository navigation
Conversation
|
@tiandiwonder, @scanhex12, @vdimir could you please assign can be tested label to this PR? |
|
Workflow [PR], commit [8efd148] Summary: ✅
AI ReviewSummaryAdds cancellation polling to Missing context / blind spots
Findings
Final VerdictStatus: |
…edStreamTransform for the fast path
…ain loop to cover all run lengths
…y other_columns (buildFilterForRange path)
…revRange fast path
… in DistinctSortedStreamTransform
…d in DistinctSortedStreamTransform
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 52/59 (88.14%) · Uncovered code |
| # Runs of 3000: chunk boundary at row 9999 falls within k=3 (rows 9000-11999). | ||
| # Chunk 2 continuation sets range_begin=2000. The first post-continuation | ||
| # run (k=4, rows 12000-14999) crosses i=4096 inside buildFilterForRange. | ||
| # Without the fix, the outer throttled check does not fire | ||
| # (range_begin - last_checked_row = 3000 < 4096) and subsequent runs | ||
| # (k=5, k=6) process hash table work after cancellation. |
There was a problem hiding this comment.
This regression still does not reach the second-chunk continueWithPrevRange scenario described in the comment above. With max_block_size = 10000, chunk 1 already contains runs [0, 3000), [3000, 6000), [6000, 9000), [9000, 10000), and buildFilterForRange hits distinct_sorted_stream_transform_pause at i = 4096 inside the second run. Because that failpoint is PAUSEABLE_ONCE, SYSTEM WAIT FAILPOINT ... PAUSE unblocks there and KILL QUERY lands before chunk 2 starts, so this test never exercises the "cancellation observed inside one continued run, but later runs still hash" bug.
Please either keep the first chunk below the first i & 0xFFF == 0 poll, or use a separate failpoint / assertion that proves the query actually reached the intended second-chunk path before it was killed.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Object file sizes4 object files changed (+86.77 KiB total), 0 added.
719 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 units9 translation units recompiled, 19 s compile time in total, 9 of them have a recent master baseline. |
…ransform kill test
|
@tiandiwonder, @scanhex12, @shankar-iyer, @george-larionov I have restarted working on this pull request after some time and I have implemented changed suggested b t |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Reduced cancellation latency for DISTINCT queries that use DistinctSortedStreamTransform: KILL QUERY now interrupts hash table lookups every 4096 rows and post-chunk processing instead of waiting for the entire sorted block to complete.
Workflow [PR]
Sync PR [sync-upstream/pr/111061]