Skip to content

Commit 1bf1650

Browse files
committed
test: add tests
1 parent c111c21 commit 1bf1650

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/sqlparser_snowflake.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4100,3 +4100,17 @@ fn parse_connect_by_root_operator() {
41004100
"sql parser error: Expected an expression, found: FROM"
41014101
);
41024102
}
4103+
4104+
#[test]
4105+
fn test_snowflake_create_view_with_composite_tag() {
4106+
let create_view_with_tag =
4107+
r#"CREATE VIEW X (COL WITH TAG (foo.bar.baz.pii='email')) AS SELECT * FROM Y"#;
4108+
snowflake().verified_stmt(create_view_with_tag);
4109+
}
4110+
4111+
#[test]
4112+
fn test_snowflake_create_view_with_composite_policy_name() {
4113+
let create_view_with_tag =
4114+
r#"CREATE VIEW X (COL WITH MASKING POLICY foo.bar.baz) AS SELECT * FROM Y"#;
4115+
snowflake().verified_stmt(create_view_with_tag);
4116+
}

0 commit comments

Comments
 (0)