File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/query/service/src/pipelines/processors/transforms/hash_join Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -215,16 +215,16 @@ impl HashJoinSpiller {
215
215
} else {
216
216
let mut hashes = self . get_hashes ( data_block, join_type) ?;
217
217
for hash in hashes. iter_mut ( ) {
218
- * hash = Self :: get_partition_id ( * hash as usize , partition_bits) as u64 ;
218
+ * hash = Self :: get_partition_id ( * hash, partition_bits as u64 ) ;
219
219
}
220
220
let partition_blocks = DataBlock :: scatter ( data_block, & hashes, 1 << partition_bits) ?;
221
221
Ok ( partition_blocks)
222
222
}
223
223
}
224
224
225
225
#[ inline( always) ]
226
- fn get_partition_id ( hash : usize , bits : usize ) -> usize {
227
- ( hash >> ( 32 - bits) ) & ( ( 1 << bits) - 1 )
226
+ fn get_partition_id ( hash : u64 , bits : u64 ) -> u64 {
227
+ ( hash >> ( 64 - bits) ) & ( ( 1 << bits) - 1 )
228
228
}
229
229
230
230
// Get all hashes for build input data.
You can’t perform that action at this time.
0 commit comments