SnowConvert AI - BigQuery - CREATE VIEW¶
Description¶
Creates a new view. (BigQuery SQL Language Reference Create view statement)
Success
This syntax is fully supported in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
BigQuery¶
Snowflake¶
Known Issues¶
There are no known Issues.
View column name list¶
Description¶
The view’s column name list is optional. The names must be unique but do not have to be the same as the column names of the underlying SQL query. (BigQuery SQL Language Reference View column name list)
Success
This syntax is fully supported in Snowflake.
Grammar Syntax¶
Sample Source Patterns¶
BigQuery¶
Snowflake¶
Known Issues¶
There are no known Issues.
Related EWIs¶
There are no related EWIs.
View Options¶
Description¶
The option list allows you to set view options such as a label and an expiration time. You can include multiple options using a comma-separated list. (BigQuery SQL Language Reference View Options)
Warning
This syntax is partially supported in Snowflake.
Grammar Syntax¶
| NAME | Value | Supported |
|---|---|---|
| expiration_timestamp | TIMESTAMP | false |
| friendly_name | STRING | true |
| description | STRING | true |
| labels | ARRAY<STRUCT<STRING, STRING>> | true |
| privacy_policy | JSON-formatted STRING | false |
Sample Source Patterns¶
Description & Friendly_name:¶
The description and friendly_name options are included in the Comment Clause generated by SnowConvert AI .
BigQuery¶
Snowflake¶
Labels:¶
In BigQuery the labels associated with a view can be used to organize and group tables in the database administrative environment, in Snowflake the Tags can be used for the same functionality. But to ensure that the tag exists, SnowConvert AI will add the corresponding CREATE TAG before the CREATE VIEW if it contains labels. It is important to know that the CREATE TAG feature requires Enterprise Edition or higher
BigQuery¶
Snowflake¶
Unsupported Options:¶
When an option clause includes elements not supported by Snowflake, An EWI will be added.
BigQuery¶
Snowflake¶
Known Issues¶
The label-to-tag transformation could lead to errors if the Snowflake account is not Enterprise Edition or higher.
Related EWIs¶
SSC-EWI-BQ0001: The OPTIONS clause within View is not supported in Snowflake.