Bugfix: convert rownum to limit returns error

This commit is contained in:
2149
2023-06-09 03:12:15 +00:00
committed by ob-robot
parent f7da35ae14
commit 11e3b1d14e

View File

@ -10173,7 +10173,7 @@ int ObLogPlan::classify_rownum_exprs(const ObIArray<ObRawExpr*> &rownum_exprs,
const_expr, filter_exprs,
start_exprs, limit_expr))) {
LOG_WARN("failed to classify rownum expr", K(ret));
} else if (const_expr == limit_expr) {
} else if (const_expr == limit_expr && T_INVALID == limit_rownum_type) {
limit_rownum_type = expr_type;
}
}