Open congxuebin opened 11 months ago
Hey, @congxuebin welcome!🎊 Thanks for taking the time to point this out.🙌
@congxuebin Hi, could you please create a pull request to correct this document? This document is in the cbdb-doc-validation
branch, which is a temporary branch to store documents that have not been validated yet. These documents are in preparation and not published on the CBDB site yet. If you find anything wrong on these documents during your validation, you are welcome to create PR to correct them. Thanks~
@TomShawn The following is PR with my proposed change. It appears it did not pass certain check. Could you please help?
@TomShawn The following is PR with my proposed change. It appears it did not pass certain check. Could you please help?
48
Thanks! I'll take a look.
https://github.com/cloudberrydb/cloudberrydb-site/blob/cbdb-doc-validation/docs/sql-stmts/sql-stmt-create-materialized-view.md
CREATE MATERIALIZED VIEW [ IF NOT EXISTS ]
[ ( [, ...] ) ]
[ USING ]
[ WITH ( [= ] [, ... ] ) ]
[ TABLESPACE ]
AS
[ WITH [ NO ] DATA ]
[DISTRIBUTED {| BY [], [ ... ] | RANDOMLY | REPLICATED }]
DISTRIBUTED clause is not correct. Missing '(' and '|' should not be in front of 'BY'.
The following is an actual example tried on CBDB.
gpadmin=# CREATE MATERIALIZED VIEW mt11 (mc1, mc2, mc3) as select c1,c2,c3 from t1 distributed by (mc1 int4_ops,mc2 text_ops); SELECT 4