add matview test case for alter orientation

This commit is contained in:
sqyyeah
2020-08-20 15:28:14 +08:00
parent 8673ef97f5
commit 975f54070e
2 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,9 @@ SELECT * FROM mvtest_tm ORDER BY type;
(0 rows)
REFRESH MATERIALIZED VIEW mvtest_tm;
ALTER MATERIALIZED VIEW mvtest_tm set (orientation=column); --error
ERROR: Un-support feature
DETAIL: Option "orientation" doesn't allow ALTER
CREATE UNIQUE INDEX mvtest_tm_type ON mvtest_tm (type);
SELECT * FROM mvtest_tm ORDER BY type;
type | totamt

View File

@ -16,6 +16,7 @@ EXPLAIN (analyze on, costs off)
CREATE MATERIALIZED VIEW mvtest_tm AS SELECT type, sum(amt) AS totamt FROM mvtest_t GROUP BY type WITH NO DATA;
SELECT * FROM mvtest_tm ORDER BY type;
REFRESH MATERIALIZED VIEW mvtest_tm;
ALTER MATERIALIZED VIEW mvtest_tm set (orientation=column); --error
CREATE UNIQUE INDEX mvtest_tm_type ON mvtest_tm (type);
SELECT * FROM mvtest_tm ORDER BY type;