-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document issue about "CREATE MATERIALIZED VIEW" #47
Comments
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 |
Synopsis change, according to apache#47
Synopsis change, according to apache#47
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 ] <table_name>
[ (<column_name> [, ...] ) ]
[ USING ]
[ WITH ( <storage_parameter> [= ] [, ... ] ) ]
[ TABLESPACE <tablespace_name> ]
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
The text was updated successfully, but these errors were encountered: