Skip to content

Commit 436cce4

Browse files
author
B Vadlamani
committed
address_review_comments
1 parent 499c5d7 commit 436cce4

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

benchmarks/src/hj.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,8 @@ const HASH_QUERIES: &[HashJoinQuery] = &[
302302
probe_size: "60M",
303303
},
304304
// RightSemi Join benchmarks with Int32 keys
305+
// Fanout: N/A for semi joins (returns at most one row per probe key)
306+
//
305307
// Q16: RightSemi, Small build (25 rows), 100% Hit rate
306308
// Build Side: nation (25 rows) | Probe Side: customer (1.5M rows)
307309
HashJoinQuery {
@@ -342,6 +344,8 @@ const HASH_QUERIES: &[HashJoinQuery] = &[
342344
probe_size: "60M_RightSemi",
343345
},
344346
// RightAnti Join benchmarks with Int32 keys
347+
// Fanout: N/A for anti joins (returns at most one row per probe key)
348+
//
345349
// Q19: RightAnti, Small build (25 rows), 100% Hit rate (no output)
346350
// Build Side: nation (25 rows) | Probe Side: customer (1.5M rows)
347351
HashJoinQuery {
@@ -401,7 +405,9 @@ impl RunOpt {
401405
None => 1..=HASH_QUERIES.len(),
402406
};
403407

404-
let config = self.common.config()?;
408+
let mut config = self.common.config()?;
409+
// Disable join reordering to ensure the optimizer doesn't swap join sides
410+
config.options_mut().optimizer.join_reordering = false;
405411
let rt = self.common.build_runtime()?;
406412
let ctx = SessionContext::new_with_config_rt(config, rt);
407413

datafusion/physical-plan/benches/hash_join_semi_anti.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,7 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717

18-
//! Criterion benchmarks for Hash Join with RightSemi/RightAnti
19-
//!
20-
//! These benchmarks measure the hash join kernel for semi/anti joins
21-
//! with Int32 keys, which can use roaring bitmap optimization.
18+
//! Criterion benchmarks for Hash Join with RightSemi/RightAnti joins with Int32 keys.
2219
2320
use std::sync::Arc;
2421

@@ -33,7 +30,7 @@ use datafusion_physical_plan::joins::{HashJoinExec, PartitionMode, utils::JoinOn
3330
use datafusion_physical_plan::test::TestMemoryExec;
3431
use tokio::runtime::Runtime;
3532

36-
/// Build RecordBatches with Int32 keys (for roaring optimization).
33+
/// Build RecordBatches with Int32 keys.
3734
///
3835
/// Schema: (key: Int32, data: Int32, payload: Utf8)
3936
///

0 commit comments

Comments
 (0)