Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/backend/catalog/gp_matview_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include "utils/lsyscache.h"
#include "storage/lockdefs.h"
#include "optimizer/optimizer.h"
#include "optimizer/transform.h"
#include "parser/parsetree.h"

static void InsertMatviewTablesEntries(Oid mvoid, List *relids);
Expand Down Expand Up @@ -73,6 +74,11 @@ GetViewBaseRelids(const Query *viewQuery, bool *has_foreign)
return NIL;
}

if (tlist_has_srf(viewQuery))
{
return NIL;
}

/* As we will use views, make it strict to unmutable. */
if (contain_mutable_functions((Node*)viewQuery))
return NIL;
Expand Down
1 change: 0 additions & 1 deletion src/backend/optimizer/README.cbdb.aqumv
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,6 @@ AQUMV_MVP
---------
Support SELECT FROM a single relation both for view_query and the origin_query.
Below are not supported now:
Aggregation (on view_query)
Subquery
Join
Sublink
Expand Down
Loading
Loading