File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -303,55 +303,6 @@ const HASH_QUERIES: &[HashJoinQuery] = &[
303303 build_size : "100K_(20%_dups)" ,
304304 probe_size : "60M" ,
305305 } ,
306- // Q16: RightSemi — 100% hit rate, unique build keys
307- // Plans as RightSemi HashJoin (supplier IN lineitem via semi join)
308- HashJoinQuery {
309- sql : r###"SELECT s_suppkey FROM supplier WHERE EXISTS (SELECT 1 FROM lineitem WHERE l_suppkey = s_suppkey)"### ,
310- density : 1.0 ,
311- prob_hit : 1.0 ,
312- build_size : "60M" ,
313- probe_size : "100K" ,
314- } ,
315- // Q17: RightSemi — 10% hit rate, unique build keys
316- HashJoinQuery {
317- sql : r###"SELECT s_suppkey FROM supplier WHERE EXISTS (SELECT 1 FROM lineitem WHERE l_suppkey = s_suppkey AND l_suppkey % 10 = 0)"### ,
318- density : 1.0 ,
319- prob_hit : 0.1 ,
320- build_size : "60M" ,
321- probe_size : "100K" ,
322- } ,
323- // Q18: RightSemi — ~1K:1 build-side duplicates per key
324- HashJoinQuery {
325- sql : r###"SELECT s_suppkey FROM supplier WHERE EXISTS (SELECT 1 FROM lineitem WHERE l_suppkey % 60000 = s_suppkey % 60000)"### ,
326- density : 1.0 ,
327- prob_hit : 1.0 ,
328- build_size : "60M_(~1K:1_dup)" ,
329- probe_size : "100K" ,
330- } ,
331- // Q19: RightAnti — 100% hit rate (most probe rows eliminated)
332- HashJoinQuery {
333- sql : r###"SELECT s_suppkey FROM supplier WHERE NOT EXISTS (SELECT 1 FROM lineitem WHERE l_suppkey = s_suppkey)"### ,
334- density : 1.0 ,
335- prob_hit : 1.0 ,
336- build_size : "60M" ,
337- probe_size : "100K" ,
338- } ,
339- // Q20: RightAnti — 10% hit rate (most probe rows survive)
340- HashJoinQuery {
341- sql : r###"SELECT s_suppkey FROM supplier WHERE NOT EXISTS (SELECT 1 FROM lineitem WHERE l_suppkey = s_suppkey AND l_suppkey % 10 = 0)"### ,
342- density : 1.0 ,
343- prob_hit : 0.1 ,
344- build_size : "60M" ,
345- probe_size : "100K" ,
346- } ,
347- // Q21: RightAnti — ~1K:1 build-side duplicates per key
348- HashJoinQuery {
349- sql : r###"SELECT s_suppkey FROM supplier WHERE NOT EXISTS (SELECT 1 FROM lineitem WHERE l_suppkey % 60000 = s_suppkey % 60000)"### ,
350- density : 1.0 ,
351- prob_hit : 1.0 ,
352- build_size : "60M_(~1K:1_dup)" ,
353- probe_size : "100K" ,
354- } ,
355306] ;
356307
357308impl RunOpt {
You can’t perform that action at this time.
0 commit comments