@@ -24,7 +24,7 @@ use arrow::array::cast::AsArray;
24
24
use arrow:: array:: { Array , ArrayBuilder , ArrayRef , GenericByteViewBuilder } ;
25
25
use arrow:: datatypes:: { BinaryViewType , ByteViewType , DataType , StringViewType } ;
26
26
use datafusion_common:: hash_utils:: create_hashes;
27
- use datafusion_common:: utils:: proxy:: { RawTableAllocExt , VecAllocExt } ;
27
+ use datafusion_common:: utils:: proxy:: { HashTableAllocExt , VecAllocExt } ;
28
28
use std:: fmt:: Debug ;
29
29
use std:: sync:: Arc ;
30
30
@@ -122,7 +122,7 @@ where
122
122
/// Should the output be StringView or BinaryView?
123
123
output_type : OutputType ,
124
124
/// Underlying hash set for each distinct value
125
- map : hashbrown:: raw :: RawTable < Entry < V > > ,
125
+ map : hashbrown:: hash_table :: HashTable < Entry < V > > ,
126
126
/// Total size of the map in bytes
127
127
map_size : usize ,
128
128
@@ -148,7 +148,7 @@ where
148
148
pub fn new ( output_type : OutputType ) -> Self {
149
149
Self {
150
150
output_type,
151
- map : hashbrown:: raw :: RawTable :: with_capacity ( INITIAL_MAP_CAPACITY ) ,
151
+ map : hashbrown:: hash_table :: HashTable :: with_capacity ( INITIAL_MAP_CAPACITY ) ,
152
152
map_size : 0 ,
153
153
builder : GenericByteViewBuilder :: new ( ) ,
154
154
random_state : RandomState :: new ( ) ,
@@ -274,7 +274,7 @@ where
274
274
// get the value as bytes
275
275
let value: & [ u8 ] = value. as_ref ( ) ;
276
276
277
- let entry = self . map . get_mut ( hash, |header| {
277
+ let entry = self . map . find_mut ( hash, |header| {
278
278
let v = self . builder . get_value ( header. view_idx ) ;
279
279
280
280
if v. len ( ) != value. len ( ) {
0 commit comments