Repository navigation
Conversation
`tests/performance/hash_join_packed_string_keys.xml` has one query for each of the 9 shapes requested in ClickHouse#128972 (comment): short keys (1-7 bytes), 36-byte keys, a 1M-key build side, no probe hits, a skewed probe, mixed lengths (2-40 bytes), a duplicate build side, and 256-byte and 20-byte keys on a 100K-row build side. The test sets `join_algorithm = parallel_hash`, `max_bytes_ratio_before_external_join = 0`, `query_plan_join_swap_table = false` and `enable_join_runtime_filters = 0`, and leaves `enable_packed_string_keys_in_hash_join` at its default, so that both sides of the comparison run the same default. A probe row hits when `cityHash64(number) % 2 = 0`. A miss of the 8M build side takes an id below 10M, so the short and the mixed probe keys keep the lengths of the build side. The 256-byte and 20-byte shapes read the probe table 6 and 4 times with `UNION ALL` on the probe side, joined once to the build table. Validated on master 45e6326 (release build): the results are equal with the setting 0 and 1; with 1 `JoinPackedStringKeysInline` + `JoinPackedStringKeysHashed` equal the build rows (0 with 0); every count and sum equals the value computed from the generators; every id hashed by `sipHash128` is a UInt64 on both sides; `perf.py` runs the test green, also with `--table-engine iceberg_local`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own review of the same head (0 blockers, 0 majors, 3 nits, none blocking).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261117-080100 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-4:20261117-074800 |
|
Workflow [PR], commit [3eee35f] Summary: ✅
AI ReviewSummaryAdds nine performance workloads for hash joins on a single Final VerdictStatus: ✅ Approve |
harikrishnan94
left a comment
There was a problem hiding this comment.
Test only changes.
LGTM.
19d6eab
Related: #128972
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Adds
tests/performance/hash_join_packed_string_keys.xml, one query for each of the 9 single-String-key shapes requested in #128972 (comment), with the 4 settings given there andenable_packed_string_keys_in_hash_joinat its default.Open choices: a probe row hits when
cityHash64(number) % 2 = 0; misses of the 8M build side take ids below 10M, so the short probe keys stay at 1-7 bytes and the mixed ones at 2-40; shapes 8 and 9 put theUNION ALLon the probe side.Validated on a master release build: results are equal with the setting 0 and 1; with 1,
JoinPackedStringKeysInline+JoinPackedStringKeysHashedequal the build rows (0 with 0); counts and sums equal the generators' values (only shape 4 is 0); everysipHash128argument is aUInt64on both sides;perf.pyruns it green, also with--table-engine iceberg_local; the fill takes 0.55 s. Medians of 5 runs at 16 threads on a 384-core host, not a CI runner:Shapes 3 and 9 run slightly under 0.1 s at 16 threads here; at 8 threads (the perf CI's amd setting, 12 on arm) every shape takes 0.14 to 0.28 s.
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132288]
Version info
26.11.1.2614-master(included in26.11and later)