提交 9f0d083b 编写于 作者: O obdev 提交者: wangzelin.wzl

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

上级 fefa90bb
......@@ -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);
......
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册