@@ -32,7 +32,7 @@ use arrow::compute::{take, SortOptions};
3232use arrow:: datatypes:: * ;
3333use arrow:: downcast_dictionary_array;
3434use arrow:: util:: bit_iterator:: BitIndexIterator ;
35- use datafusion_common:: hash_utils:: create_hashes_from_arrays ;
35+ use datafusion_common:: hash_utils:: create_hashes ;
3636use datafusion_common:: { exec_err, internal_err, DFSchema , Result , ScalarValue } ;
3737use datafusion_expr:: ColumnarValue ;
3838
@@ -125,7 +125,7 @@ impl Set for ArraySet {
125125 let has_nulls = in_array. null_count ( ) != 0 ;
126126
127127 let mut hashes_buf = vec ! [ 0u64 ; v. len( ) ] ;
128- create_hashes_from_arrays ( & [ v] , & self . hash_set . state , & mut hashes_buf) ?;
128+ create_hashes ( [ v] , & self . hash_set . state , & mut hashes_buf) ?;
129129 let cmp = make_comparator ( v, in_array, SortOptions :: default ( ) ) ?;
130130 Ok ( ( 0 ..v. len ( ) )
131131 . map ( |i| {
@@ -174,7 +174,7 @@ fn make_hash_set(array: &dyn Array) -> Result<ArrayHashSet> {
174174 let state = RandomState :: new ( ) ;
175175 let mut map: HashMap < usize , ( ) , ( ) > = HashMap :: with_hasher ( ( ) ) ;
176176 let mut hashes = vec ! [ 0 ; array. len( ) ] ;
177- create_hashes_from_arrays ( & [ array] , & state, & mut hashes) ?;
177+ create_hashes ( [ array] , & state, & mut hashes) ?;
178178 let cmp = make_comparator ( array, array, SortOptions :: default ( ) ) ?;
179179
180180 let insert_value = |idx| {
@@ -564,11 +564,9 @@ impl Hash for InListExpr {
564564 InListStorage :: Array { array, .. } => {
565565 let random_state = RandomState :: with_seed ( 0 ) ;
566566 let mut hashes_buf = vec ! [ 0u64 ; array. len( ) ] ;
567- let Ok ( hashes_buf) = create_hashes_from_arrays (
568- & [ array. as_ref ( ) ] ,
569- & random_state,
570- & mut hashes_buf,
571- ) else {
567+ let Ok ( hashes_buf) =
568+ create_hashes ( [ array] , & random_state, & mut hashes_buf)
569+ else {
572570 unreachable ! ( "Failed to create hashes for InList array. This shouldn't happen because make_set should have succeeded earlier." ) ;
573571 } ;
574572 hashes_buf. hash ( state) ;
0 commit comments