fix core in nlj

This commit is contained in:
obdev
2023-02-08 15:08:46 +08:00
committed by ob-robot
parent fbc39031c6
commit c129aa89d0
2 changed files with 4 additions and 1 deletions

View File

@ -847,7 +847,9 @@ int ObNestedLoopJoinOp::process_right_batch()
} else {
if (MY_SPEC.enable_px_batch_rescan_) {
last_save_batch_.extend_save(eval_ctx_, right_brs->size_);
} else if (!MY_SPEC.group_rescan_) {
} else if (MY_SPEC.group_rescan_) {
group_join_buffer_.get_last_batch().extend_save(eval_ctx_, right_brs->size_);
} else {
left_batch_.extend_save(eval_ctx_, right_brs->size_);
}
left_expr_extend(right_brs->size_);