Add a rule to force use das if has variable assignments in sql

This commit is contained in:
obdev
2023-09-13 13:21:37 +00:00
committed by ob-robot
parent 0d35739e39
commit c8c222deaa
4 changed files with 14 additions and 0 deletions

View File

@ -537,6 +537,10 @@ int ObLogTableScan::extract_pushdown_filters(ObIArray<ObRawExpr*> &nonpushdown_f
if (OB_FAIL(nonpushdown_filters.push_back(filters.at(i)))) {
LOG_WARN("push UDF filter store non-pushdown filter failed", K(ret), K(i));
}
} else if (filters.at(i)->has_flag(CNT_ASSIGN_EXPR)) {
if (OB_FAIL(nonpushdown_filters.push_back(filters.at(i)))) {
LOG_WARN("push variable assign filter store non-pushdown filter failed", K(ret), K(i));
}
} else if (!get_index_back()) {
if (OB_FAIL(scan_pushdown_filters.push_back(filters.at(i)))) {
LOG_WARN("store pushdown filter failed", K(ret));