disable fast refresh for mview contain subquery

This commit is contained in:
obdev
2024-02-09 19:16:38 +00:00
committed by ob-robot
parent 71301ab305
commit 3184cce2bc

View File

@ -74,6 +74,11 @@ int ObMVChecker::check_mv_stmt_refresh_type_basic(const ObSelectStmt &stmt, bool
append_fast_refreshable_note("set query not support");
}
if (OB_SUCC(ret) && (stmt.has_subquery())) {
is_valid = false;
append_fast_refreshable_note("subquery not support");
}
if (OB_SUCC(ret) && (stmt.has_order_by() || stmt.has_limit())) {
is_valid = false;
append_fast_refreshable_note("order by and limit not support");