Skip to content
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

docs: correct syntax for sql-stmt-create-materialized-view.md #48

Merged
merged 3 commits into from
Jul 18, 2024
Merged
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
4 changes: 2 additions & 2 deletions docs/sql-stmts/sql-stmt-create-materialized-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ CREATE MATERIALIZED VIEW [ IF NOT EXISTS ] <table_name>
[ TABLESPACE <tablespace_name> ]
AS <query>
[ WITH [ NO ] DATA ]
[DISTRIBUTED {| BY <column> [<opclass>], [ ... ] | RANDOMLY | REPLICATED }]
[DISTRIBUTED { BY ( <column> [<opclass>] [, ... ] ) | RANDOMLY | REPLICATED }]
```

## Description
Expand Down Expand Up @@ -62,7 +62,7 @@ A [SELECT](/docs/sql-stmts/sql-stmt-select.md), [TABLE](/docs/sql-stmts/sql-stmt

This clause specifies whether or not the materialized view should be populated with data at creation time. `WITH DATA` is the default, populate the materialized view. For `WITH NO DATA`, the materialized view is not populated with data, is flagged as unscannable, and cannot be queried until `REFRESH MATERIALIZED VIEW` is used to populate the materialized view.

**`DISTRIBUTED BY (column [opclass], [ ... ] )`**<br />
**`[DISTRIBUTED { BY ( <column> [<opclass>] [, ... ] )`**<br />
**`DISTRIBUTED RANDOMLY`**<br />
**`DISTRIBUTED REPLICATED`**

Expand Down