Fix hash union distinct mark wrong is_block_input

This commit is contained in:
qianchanger
2023-03-02 15:46:54 +00:00
committed by ob-robot
parent ddd47ae67f
commit b0e1f8141e

View File

@ -60,7 +60,7 @@ public:
//hash set 全部都是从left 建立hash表,0号孩子是block input
virtual bool is_block_input(const int64_t child_idx) const override
{
return HASH_SET == set_algo_ && 0 == child_idx;
return HASH_SET == set_algo_ && 0 == child_idx && ObSelectStmt::UNION != get_set_op();
}
inline void assign_set_op(const ObSelectStmt::SetOperator set_op) { set_op_ = set_op; }
inline ObSelectStmt::SetOperator get_set_op() const { return set_op_; }