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;
86
86
use futures:: { ready, Stream , StreamExt , TryStreamExt } ;
87
87
use parking_lot:: Mutex ;
88
88
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
+
89
93
/// HashTable and input data for the left (build side) of a join
90
94
struct JoinLeftData {
91
95
/// The hash table with indices into `batch`
@@ -385,7 +389,7 @@ impl HashJoinExec {
385
389
let ( join_schema, column_indices) =
386
390
build_join_schema ( & left_schema, & right_schema, join_type) ;
387
391
388
- let random_state = RandomState :: with_seeds ( 0 , 0 , 0 , 0 ) ;
392
+ let random_state = HASH_JOIN_SEED ;
389
393
390
394
let join_schema = Arc :: new ( join_schema) ;
391
395
You can’t perform that action at this time.
0 commit comments