Repository navigation
Conversation
The row store admitted a build-side String column only when statistics gave its average size. Sources without statistics (Iceberg, Memory, MergeTree without basic statistics) kept every string columnar, so a build side of a key plus strings got no row store. An unknown average is now taken as the inline size (15 bytes plus the offset); the min_string_column_bytes_for_hash_join_row_store check still decides. A longer value goes to the overflow buffer and still saves the cache miss of the columnar gather. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Workflow [PR], commit [f36102f] AI ReviewSummaryPR #131917, head Missing context / blind spots
Final VerdictStatus: ✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units8 translation units recompiled, 23 s compile time in total, 8 of them have a recent master baseline. |
|
@murphy-4o : Could you add a case to tests/performance/hash_join_with_row_store_strings.xml with long String payload columns (100 to 1000 bytes) on a table without statistics (auto_statistics_types = ''), so we can see that unknown-width columns with long values don't regress in time or memory? |
|
CC: @m-selmi |
|
Tbh, just assuming an average size and hoping for the best isn't a great strategy. About the average string size: Do Parquet files not somehow store the uncompressed size per column that could be divided by the row count? |
|
…known-string-width Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
I ran some experiments on my local machine (AMD EPYC 9R14, 32 cores, 1 MiB L2 per core, 128 MiB L3):
Looks like the picture is split, at 100 byte we can even get better performance in some cases. So IMO we should not jump to enabling this, at least not without a different strategy.
|
|
@m-selmi |
Related: #125979
Depends: #132249
The hash join row store takes a
Stringcolumn only if statistics give its average size. Iceberg tables have no such statistics, so their joins never used the row store. Now an unknown average is treated as the inline size (15 bytes); longer values go to the overflow buffer and still gain.TPC-DS SF100 on Iceberg: q11 0.86x, q74 0.91x, q87 0.94x, q38 0.96x; no query more than 5% slower.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
The hash join row store now also stores
Stringcolumns without statistics (for example from Iceberg tables), which speeds up such joins.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/131917]