Repository navigation
Add test: Direct reads of RIGHT-kind Join engine tables with ANY/SEMI/ANTI strictness (fillAll dispatch) untested - #109603
Conversation
|
Pre-PR Validation Gate (per ClickGap pipeline): a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Workflow [PR], commit [d2c290b] Summary: ❌
AI ReviewSummaryThis PR adds a stateless regression test for direct reads from RIGHT-kind Final Verdict✅ No findings. |
Single INSERT VALUES kept every ref in block_no=0; per-INSERT rows force
fillAll direct reads to resolve {block_no,row_no} across blocks 0..2.
Requested by @clickhouse-gh[bot] in ClickHouse#109603 (comment)
harikrishnan94
left a comment
There was a problem hiding this comment.
Test only changes.
LGTM.
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 87 line(s), 4 function(s) across 39 file(s) · Details Top files
|
63e4476
Single INSERT VALUES kept every ref in block_no=0; per-INSERT rows force
fillAll direct reads to resolve {block_no,row_no} across blocks 0..2.
Requested by @clickhouse-gh[bot] in ClickHouse#109603 (comment)
…pr107189 Add test: Direct reads of RIGHT-kind `Join` engine tables with `ANY`/`SEMI`/`ANTI` strictness (`fillAll` dispatch) untested
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #107189.
PR replaces the pointer-based
RowRef/RowRefListhash-join build-side cell representation with a compact 8-byte index-based encoding: cells hold{block_no, row_no}and a per-joinStoredColumnsIndexresolvesblock_noto the stored block. All map variants, join kinds and strictnesses are affe1. Direct reads of RIGHT-kind
Joinengine tables withANY/SEMI/ANTIstrictness (fillAlldispatch) untestedsrc/Storages/StorageJoin.cpp:869,src/Storages/StorageJoin.cpp:876Risk:
StorageJoin.cpp:869/876/883selectfillAll(notfillOne) forKIND == JoinKind::RightunderAny/Semi/Antistrictness;fillAllwalksit->getMapped().begin()and resolves each ref via the new index-basedrefWordBlockNo/refWordRowNo. Risk: if the dispatch or block resolution is broken, a direct read of such a table silently returns wrong rows (missing duplicates or reading the wrong stored column) — wrong results with no error.What's unique vs PR tests: The PR's own 04402_storage_join_emit_non_first_column.sql covers ANY LEFT and ALL INNER direct reads; it never creates a RIGHT-kind Join engine table nor exercises the ANY/SEMI/ANTI + RIGHT fillAll dispatch that this test targets.
Try it on ClickHouse Fiddle
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes
Version info
26.7.1.612(included in26.7and later)