[CP] [CP] fix subplan filter PKEY plan bug

This commit is contained in:
zzg19950727
2023-11-21 04:40:44 +00:00
committed by ob-robot
parent 9d8968229d
commit 4746c866f5
3 changed files with 29 additions and 4 deletions

View File

@ -558,6 +558,20 @@ bool ObOptimizerUtil::is_expr_equivalent(const ObRawExpr *from,
return found;
}
bool ObOptimizerUtil::is_exprs_equivalent(const common::ObIArray<ObRawExpr*> &from,
const common::ObIArray<ObRawExpr*> &to,
const EqualSets &equal_sets)
{
bool b_ret = true;
if (from.count() != to.count()) {
b_ret = false;
}
for (int64_t i = 0; b_ret && i < from.count(); ++i) {
b_ret = is_expr_equivalent(from.at(i), to.at(i), equal_sets);
}
return b_ret;
}
bool ObOptimizerUtil::is_expr_equivalent(const ObRawExpr *from,
const ObRawExpr *to)
{