Fix two bugs about join

This commit is contained in:
obdev
2022-11-03 01:08:33 +00:00
committed by wangzelin.wzl
parent c55903a9df
commit add9d0d15b
6 changed files with 22 additions and 87 deletions

View File

@ -11385,10 +11385,10 @@ int ObJoinOrder::extract_pushdown_quals(const ObIArray<ObRawExpr *> &quals,
ret = OB_ERR_UNEXPECTED;
LOG_WARN("get unexplected null", K(qual), K(ret));
// can not push down expr with subquery
} else if (qual->has_flag(CNT_ONETIME) ||
qual->has_flag(CNT_PSEUDO_COLUMN) ||
qual->has_flag(CNT_PRIOR) ||
qual->has_flag(CNT_ROWNUM)) {
} else if (qual->has_flag(CNT_SUB_QUERY) &&
(qual->has_flag(CNT_PSEUDO_COLUMN) ||
qual->has_flag(CNT_PRIOR) ||
qual->has_flag(CNT_ROWNUM))) {
if (force_inner_nl) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("can not push down special qual", KPC(qual), K(ret));