File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/query/service/src/pipelines/processors/transforms/hash_join Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -435,13 +435,14 @@ impl JoinHashTable {
435
435
}
436
436
437
437
fn find_unmatched_build_indexes ( & self ) -> Result < Vec < RowPtr > > {
438
- // For right join, build side will appear at lease once in the joined table
438
+ // For right join, build side will appear at least once in the joined table
439
439
// Find the unmatched rows in build side
440
440
let mut unmatched_build_indexes = vec ! [ ] ;
441
441
let build_indexes = self . hash_join_desc . right_join_desc . build_indexes . read ( ) ;
442
442
let build_indexes_set: HashSet < & RowPtr > = build_indexes. iter ( ) . collect ( ) ;
443
- let chunks = self . row_space . chunks . read ( ) . unwrap ( ) ;
444
- for ( chunk_index, chunk) in chunks. iter ( ) . enumerate ( ) {
443
+ // TODO(xudong): remove the line of code below after https://github.com/rust-lang/rust-clippy/issues/8987
444
+ #[ allow( clippy:: significant_drop_in_scrutinee) ]
445
+ for ( chunk_index, chunk) in self . row_space . chunks . read ( ) . unwrap ( ) . iter ( ) . enumerate ( ) {
445
446
for row_index in 0 ..chunk. num_rows ( ) {
446
447
let row_ptr = RowPtr {
447
448
chunk_index : chunk_index as u32 ,
@@ -455,7 +456,6 @@ impl JoinHashTable {
455
456
}
456
457
}
457
458
}
458
- drop ( chunks) ;
459
459
Ok ( unmatched_build_indexes)
460
460
}
461
461
}
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ impl JoinHashTable {
655
655
656
656
pub ( crate ) fn filter_rows_for_right_join (
657
657
bm : & mut MutableBitmap ,
658
- build_indexes : & Vec < RowPtr > ,
658
+ build_indexes : & [ RowPtr ] ,
659
659
row_state : & mut std:: collections:: HashMap < RowPtr , usize > ,
660
660
) {
661
661
for ( index, row) in build_indexes. iter ( ) . enumerate ( ) {
You can’t perform that action at this time.
0 commit comments