Fix union hash distinct hang

This commit is contained in:
qianchanger
2023-05-08 12:08:39 +00:00
committed by ob-robot
parent a4f5e20706
commit 994138989a

View File

@ -3841,8 +3841,8 @@ int ObLogicalOperator::px_pipe_blocking_post(ObPxPipeBlockingCtx &ctx)
if (OB_SUCC(ret)) { if (OB_SUCC(ret)) {
if (LOG_SET == get_type() && !got_in_exch) { if (LOG_SET == get_type() && !got_in_exch) {
ObLogSet *set_op = static_cast<ObLogSet *>(this); ObLogSet *set_op = static_cast<ObLogSet *>(this);
bool is_union_all = ObSelectStmt::UNION == set_op->get_set_op() && !set_op->is_set_distinct(); bool is_union = ObSelectStmt::UNION == set_op->get_set_op();
if (is_union_all && max_dfo_child_idx > 0) { if (is_union && max_dfo_child_idx > 0) {
got_in_exch = true; got_in_exch = true;
} }
} }