[CP] fix hash right semi join use nestloop leads result wrong

This commit is contained in:
obdev
2022-10-12 03:36:27 +00:00
committed by wangzelin.wzl
parent fefa90bb5d
commit 9f0d083b6c
2 changed files with 2 additions and 2 deletions

View File

@ -2283,7 +2283,7 @@ int ObHashJoin::get_processor_type(ObPartHashJoinCtx& join_ctx) const
join_ctx.set_processor(ObHashJoin::ObPartHashJoinCtx::RECURSIVE);
} else if (enable_nest_loop) {
// case 3: nest loop process
if (!need_right_bitset() || MAX_NEST_LOOP_RIGHT_ROW_COUNT >= join_ctx.right_op_->get_row_count_on_disk()) {
if (!need_right_bitset() && MAX_NEST_LOOP_RIGHT_ROW_COUNT >= join_ctx.right_op_->get_row_count_on_disk()) {
join_ctx.set_processor(ObHashJoin::ObPartHashJoinCtx::NEST_LOOP);
} else {
join_ctx.set_processor(ObHashJoin::ObPartHashJoinCtx::RECURSIVE);

View File

@ -1011,7 +1011,7 @@ int ObHashJoinOp::get_processor_type()
set_processor(RECURSIVE);
} else if (enable_nest_loop) {
// case 3: nest loop process
if (!need_right_bitset() || MAX_NEST_LOOP_RIGHT_ROW_COUNT >= right_batch_->get_row_count_on_disk()) {
if (!need_right_bitset() && MAX_NEST_LOOP_RIGHT_ROW_COUNT >= right_batch_->get_row_count_on_disk()) {
set_processor(NEST_LOOP);
} else {
set_processor(RECURSIVE);