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 {
435435 }
436436
437437 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
439439 // Find the unmatched rows in build side
440440 let mut unmatched_build_indexes = vec ! [ ] ;
441441 let build_indexes = self . hash_join_desc . right_join_desc . build_indexes . read ( ) ;
442442 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 ( ) {
445446 for row_index in 0 ..chunk. num_rows ( ) {
446447 let row_ptr = RowPtr {
447448 chunk_index : chunk_index as u32 ,
@@ -455,7 +456,6 @@ impl JoinHashTable {
455456 }
456457 }
457458 }
458- drop ( chunks) ;
459459 Ok ( unmatched_build_indexes)
460460 }
461461}
Original file line number Diff line number Diff line change @@ -655,7 +655,7 @@ impl JoinHashTable {
655655
656656 pub ( crate ) fn filter_rows_for_right_join (
657657 bm : & mut MutableBitmap ,
658- build_indexes : & Vec < RowPtr > ,
658+ build_indexes : & [ RowPtr ] ,
659659 row_state : & mut std:: collections:: HashMap < RowPtr , usize > ,
660660 ) {
661661 for ( index, row) in build_indexes. iter ( ) . enumerate ( ) {
You can’t perform that action at this time.
0 commit comments