-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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: Add DDL docs for Views #9878
Conversation
97c74ec
to
923f18f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few fixes, but the info is great.
docs/docs/spark-ddl.md
Outdated
ALTER VIEW <viewName> SET TBLPROPERTIES ('key1' = 'val1', 'key2' = 'val2') | ||
``` | ||
|
||
Properties can be removed using: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Properties can be removed using: | |
Remove properties of an existing view in a similar way using `ALTER VIEW ... UNSET`: | |
1f42f7f
to
7140502
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly nits. Address them at will. LGTM!
docs/docs/spark-ddl.md
Outdated
|
||
Create a simple view without any comments or properties: | ||
```sql | ||
CREATE VIEW <viewName> AS SELECT * from <tableName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit
CREATE VIEW <viewName> AS SELECT * from <tableName> | |
CREATE VIEW <viewName> AS SELECT * FROM <tableName> |
docs/docs/spark-ddl.md
Outdated
|
||
Using `IF NOT EXISTS` prevents the SQL statement from failing in case the view already exists: | ||
```sql | ||
CREATE VIEW IF NOT EXISTS <viewName> AS SELECT * from <tableName> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit x2
CREATE VIEW IF NOT EXISTS <viewName> AS SELECT * from <tableName> | |
CREATE VIEW IF NOT EXISTS <viewName> AS SELECT * FROM <tableName> |
1502e6b
to
86f3595
Compare
86f3595
to
f36676b
Compare
thanks for reviewing @ajantha-bhat and @bitsondatadev |
No description provided.