Skip to content

Commit 6a8379b

Browse files
committed
Set HashJoin seed
1 parent 6ffed55 commit 6a8379b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

datafusion/physical-plan/src/joins/hash_join.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ use datafusion_physical_expr_common::physical_expr::fmt_sql;
8686
use futures::{ready, Stream, StreamExt, TryStreamExt};
8787
use parking_lot::Mutex;
8888

89+
const HASH_JOIN_SEED: RandomState = RandomState::with_seeds('J' as u64, 'O' as u64, 'I' as u64, 'N' as u64);
90+
8991
/// HashTable and input data for the left (build side) of a join
9092
struct JoinLeftData {
9193
/// The hash table with indices into `batch`
@@ -385,7 +387,7 @@ impl HashJoinExec {
385387
let (join_schema, column_indices) =
386388
build_join_schema(&left_schema, &right_schema, join_type);
387389

388-
let random_state = RandomState::with_seeds(0, 0, 0, 0);
390+
let random_state = HASH_JOIN_SEED;
389391

390392
let join_schema = Arc::new(join_schema);
391393

0 commit comments

Comments
 (0)