Repository navigation
Conversation
PR ClickHouse#99013 added `IColumn::compareTrackAt` for devirtualized multi-row skipping in partial-merge join. Two coverage gaps filled: 1. `04042_partial_merge_join_float_nan`: exercises `ColumnVector<Float64>::compareTrackAt` (ColumnVector.h:157) with `NaN`/`Inf` keys in `partial_merge` join. Verifies that `NaN` matches `NaN` (merge-join semantics: `compareAt` returns 0 for equal sort positions) and that track-skipping works correctly for floating-point keys including negative infinity. 2. `04043_partial_merge_join_multikey_track`: exercises `MergeJoin.cpp:327-340` — `compareTrackAt` on the first sort key forces `track > 1` on left runs that are strictly less than the right cursor; secondary keys then use regular `compareAt`. Verifies that multi-row skipping on key1 does not accidentally skip valid (key1, key2) matches. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Workflow [PR], commit [679e133] Summary: ✅ AI ReviewSummaryThis PR adds two new stateless tests ( ClickHouse Rules
Final Verdict
|
|
Dear @zlareb1, this PR hasn't been updated for a while. Will you continue working on it? If not, please close it. Otherwise, ignore this message. |
|
@groeneai check if these tests are required. If yes, open a new PR. |
|
Yes, these are still uncovered. Reopened as #110646 (renumbered to 04546/04547 since 04042/04043 are now taken on master). The Float/NaN test now pins NaN rows last via isNaN() in the ORDER BY so it's deterministic under randomized nan_direction_hint. |
This PR adds tests for the coverage gaps identified in PR #99013, which introduced
IColumn::compareTrackAtfor devirtualized multi-row skipping inpartial_mergejoin.04042_partial_merge_join_float_nanExercises
ColumnVector<Float64>::compareTrackAt(ColumnVector.h:157) withFloat64join keys includingNaN,Inf, and-Inf. No existing test in the suite used floating-point keys withpartial_mergejoin. Verifies thatNaNmatchesNaNunder merge-join sort semantics and that track-skipping works correctly for all floating-point special values.04043_partial_merge_join_multikey_trackExercises MergeJoin.cpp:327-340:
compareTrackAton the first sort key returnstrack > 1for runs of left-side rows strictly less than the right cursor, thennextN(-cmp)skips them at once. Secondary keys fall back to regularcompareAt. Verifies that multi-row first-key skipping does not accidentally miss valid(key1, key2)matches.Created with Claude.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes