Skip to content

Commit d73a8f9

Browse files
committed
fix: fix right join bug, issue 9018
1 parent f3e1a5b commit d73a8f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/query/service/src/pipelines/processors/transforms/hash_join/hash_join_state_impl.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ impl HashJoinState for JoinHashTable {
294294
}
295295

296296
let rest_block = self.rest_block()?;
297+
if rest_block.is_empty() {
298+
return Ok(blocks.to_vec());
299+
}
297300
let input_block = DataBlock::concat_blocks(&[blocks, &[rest_block]].concat())?;
298301

299302
if unmatched_build_indexes.is_empty() && self.hash_join_desc.other_predicate.is_none() {

0 commit comments

Comments
 (0)