Skip to content

Snowflake grammar accept a MASKING POLICY#4903

Open
fgouget-maker wants to merge 1 commit into
antlr:masterfrom
fgouget-maker:snowflake-view-inline-masking-policy
Open

Snowflake grammar accept a MASKING POLICY#4903
fgouget-maker wants to merge 1 commit into
antlr:masterfrom
fgouget-maker:snowflake-view-inline-masking-policy

Conversation

@fgouget-maker

Copy link
Copy Markdown

Make the Snowflake grammar accept a MASKING POLICY (and tags) declared inline on a column within the column list of a:

CREATE VIEW / CREATE MATERIALIZED VIEW :

CREATE OR REPLACE VIEW V (
    COL_A,
    COL_B WITH MASKING POLICY MP USING (COL_B, COL_A)
) AS SELECT COL_A, COL_B FROM T;

…d inline on a column within the column list of a:

`CREATE VIEW` / `CREATE MATERIALIZED VIEW` :

```sql
CREATE OR REPLACE VIEW V (
    COL_A,
    COL_B WITH MASKING POLICY MP USING (COL_B, COL_A)
) AS SELECT COL_A, COL_B FROM T;
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants