fix mysqltest introduced by deduce redundant preds

This commit is contained in:
ChangerR
2023-09-01 15:10:40 +00:00
committed by ob-robot
parent 5e3a117ca7
commit 0b8f0353c5
4 changed files with 30 additions and 0 deletions

View File

@ -9016,3 +9016,13 @@ int ObOptimizerUtil::split_or_filter_into_subquery(ObIArray<const ObDMLStmt *> &
return ret;
}
bool ObOptimizerUtil::find_superset(const ObRelIds &rel_ids,
const ObIArray<ObRelIds> &single_table_ids)
{
bool bret = false;
for (int64_t i = 0; !bret && i < single_table_ids.count(); ++i) {
bret = (single_table_ids.at(i).is_superset(rel_ids));
}
return bret;
}