fix shared group by subquery bug

This commit is contained in:
yinyj17
2023-05-23 03:47:33 +00:00
committed by ob-robot
parent 0e7bd1eadd
commit 65d39aaf03
3 changed files with 11 additions and 2 deletions

View File

@ -1378,7 +1378,8 @@ bool ObQueryRefRawExpr::inner_same_as(
// very tricky, check the definition of ref_stmt_ and get_ref_stmt()
bool_ret = (get_ref_id() == u_expr.get_ref_id() &&
ref_stmt_ == u_expr.ref_stmt_ &&
is_multiset_ == is_multiset_);
is_set_ == u_expr.is_set_ &&
is_multiset_ == u_expr.is_multiset_);
}
}
return bool_ret;
@ -1388,7 +1389,9 @@ bool ObExprEqualCheckContext::compare_query(const ObQueryRefRawExpr &left,
const ObQueryRefRawExpr &right)
{
return left.get_ref_id() == right.get_ref_id() &&
left.get_ref_stmt() == right.get_ref_stmt();
left.get_ref_stmt() == right.get_ref_stmt() &&
left.is_set() == right.is_set() &&
left.is_multiset() == right.is_multiset();
}
int ObQueryRefRawExpr::do_visit(ObRawExprVisitor &visitor)