This is an automated email from the ASF dual-hosted git repository.

dheres pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-datafusion.git


The following commit(s) were added to refs/heads/master by this push:
     new c945b03  Make test join_with_hash_collision deterministic (#229)
c945b03 is described below

commit c945b03f3a459a5c15f481f9d52819df56e1090c
Author: DaniĆ«l Heres <[email protected]>
AuthorDate: Sat May 1 11:33:22 2021 +0200

    Make test join_with_hash_collision deterministic (#229)
---
 datafusion/src/physical_plan/hash_join.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/datafusion/src/physical_plan/hash_join.rs 
b/datafusion/src/physical_plan/hash_join.rs
index 2edd0c7..8e6b042 100644
--- a/datafusion/src/physical_plan/hash_join.rs
+++ b/datafusion/src/physical_plan/hash_join.rs
@@ -1381,7 +1381,7 @@ mod tests {
             ("y", &vec![200, 300]),
         );
 
-        let random_state = RandomState::new();
+        let random_state = RandomState::with_seeds(0, 0, 0, 0);
         let hashes_buff = &mut vec![0; left.num_rows()];
         let hashes =
             create_hashes(&[left.columns()[0].clone()], &random_state, 
hashes_buff)?;

Reply via email to