Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions benchmarks/src/hj.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,33 @@ const HASH_QUERIES: &[HashJoinQuery] = &[
probe_size: "15M",
isolate_partitioned_join: true,
},
// Q28: Q23 with independently encoded dictionaries on both sides. The join
// must match logical string values rather than dictionary keys, while the
// repeated build keys make value translation cheaper than per-pair comparison.
HashJoinQuery {
sql: r###"SELECT count(*)
FROM (
SELECT arrow_cast(
'high_fanout_dictionary_join_key_' || CAST((s_suppkey % 415) + 1 AS VARCHAR),
'Dictionary(Int32, Utf8)'
) as k
FROM supplier
WHERE s_suppkey <= 32340
) s
JOIN (
SELECT arrow_cast(
'high_fanout_dictionary_join_key_1',
'Dictionary(Int32, Utf8)'
) as k
FROM lineitem
WHERE l_orderkey % 265 = 0
) l ON s.k = l.k"###,
density: 1.0,
prob_hit: 1.0,
build_size: "32K_(dictionary_fanout~78)",
probe_size: "2.3M_dictionary_keys_count",
isolate_partitioned_join: true,
},
];

impl RunOpt {
Expand Down
Loading
Loading