disable fast refresh for mview contain subquery

This commit is contained in:
chimyue
2024-01-19 10:23:03 +00:00
committed by ob-robot
parent b0f8e6300a
commit 41025cf020

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");