File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
datafusion/physical-plan/src/joins Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,10 @@ use datafusion_physical_expr_common::physical_expr::fmt_sql;
8686use futures:: { ready, Stream , StreamExt , TryStreamExt } ;
8787use parking_lot:: Mutex ;
8888
89+ /// Hard-coded seed to ensure hash values from the hash join differ from `RepartitionExec`, avoiding collisions.
90+ const HASH_JOIN_SEED : RandomState =
91+ RandomState :: with_seeds ( 'J' as u64 , 'O' as u64 , 'I' as u64 , 'N' as u64 ) ;
92+
8993/// HashTable and input data for the left (build side) of a join
9094struct JoinLeftData {
9195 /// The hash table with indices into `batch`
@@ -385,7 +389,7 @@ impl HashJoinExec {
385389 let ( join_schema, column_indices) =
386390 build_join_schema ( & left_schema, & right_schema, join_type) ;
387391
388- let random_state = RandomState :: with_seeds ( 0 , 0 , 0 , 0 ) ;
392+ let random_state = HASH_JOIN_SEED ;
389393
390394 let join_schema = Arc :: new ( join_schema) ;
391395
You can’t perform that action at this time.
0 commit comments