You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7ae6b35
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: corpora/polyglot-check/expected_differences.toml
+83Lines changed: 83 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -912,6 +912,83 @@ dialects = ["Snowflake"]
912
912
sqlquack_error = "Snowflake set operations take no LEFT, RIGHT, FULL, INNER or OUTER"
913
913
note = "INNER UNION ... BY NAME is BigQuery's; Snowflake rejects a join side before a set operation (recorded errno 1003)"
914
914
915
+
[[rejection]]
916
+
id = "snowflake_role_grant_without_role"
917
+
sql = "GRANT developer_role TO john;"
918
+
dialects = ["Snowflake"]
919
+
sqlquack_error = "Expected a privilege"
920
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
921
+
922
+
[[rejection]]
923
+
id = "snowflake_role_grant_without_role_quoted_user"
924
+
sql = "GRANT abluva TO \"kk8529p@abluva.com\";"
925
+
dialects = ["Snowflake"]
926
+
sqlquack_error = "Expected a privilege"
927
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
928
+
929
+
[[rejection]]
930
+
id = "snowflake_role_grant_without_role_admin_option"
931
+
sql = "GRANT admin_role TO mary WITH ADMIN OPTION;"
932
+
dialects = ["Snowflake"]
933
+
sqlquack_error = "Expected a privilege"
934
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
935
+
936
+
[[rejection]]
937
+
id = "snowflake_role_grant_without_role_lists"
938
+
sql = "GRANT role1, role2 TO user1, \"user2@example.com\";"
939
+
dialects = ["Snowflake"]
940
+
sqlquack_error = "Expected a privilege"
941
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
942
+
943
+
[[rejection]]
944
+
id = "snowflake_role_grant_without_role_user_list"
945
+
sql = "GRANT purchases_reader_role TO george, maria;"
946
+
dialects = ["Snowflake"]
947
+
sqlquack_error = "Expected a privilege"
948
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
949
+
950
+
[[rejection]]
951
+
id = "snowflake_role_grant_quoted_roles"
952
+
sql = "GRANT 'role1', 'role2' TO 'user1'@'localhost', 'user2'@'localhost';"
953
+
dialects = ["Snowflake"]
954
+
sqlquack_error = "Expected a privilege"
955
+
note = "MySQL grants quoted roles to user@host accounts; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name>, with identifiers, not strings"
956
+
957
+
[[rejection]]
958
+
id = "snowflake_role_grant_without_role_after_select"
959
+
sql = "SELECT set_config('session_authorization', 'abluva', false); GRANT abluva TO \"kk8529p@abluva.com\";"
960
+
dialects = ["Snowflake"]
961
+
sqlquack_error = "Expected a privilege"
962
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
963
+
964
+
[[rejection]]
965
+
id = "snowflake_role_grant_without_role_unterminated"
966
+
sql = "GRANT abluva TO \"kk8529p@abluva.com\""
967
+
dialects = ["Snowflake"]
968
+
sqlquack_error = "Expected a privilege"
969
+
note = "Postgres grants role membership without ROLE; Snowflake writes GRANT ROLE <name> TO { ROLE | USER } <name> and refuses GRANT v1 TO USER v1 with syntax error 1003"
970
+
971
+
[[rejection]]
972
+
id = "snowflake_role_revoke_without_role"
973
+
sql = "REVOKE developer_role FROM john;"
974
+
dialects = ["Snowflake"]
975
+
sqlquack_error = "Expected a privilege"
976
+
note = "Postgres revokes role membership without ROLE; Snowflake writes REVOKE ROLE <name> FROM { ROLE | USER } <name>, as GRANT ROLE, which refuses the form without ROLE with syntax error 1003"
977
+
978
+
[[rejection]]
979
+
id = "snowflake_role_revoke_admin_option_without_role"
980
+
sql = "REVOKE ADMIN OPTION FOR developer_role FROM john CASCADE;"
981
+
dialects = ["Snowflake"]
982
+
sqlquack_error = "Expected a privilege"
983
+
note = "Postgres revokes role membership without ROLE; Snowflake writes REVOKE ROLE <name> FROM { ROLE | USER } <name>, as GRANT ROLE, which refuses the form without ROLE with syntax error 1003"
984
+
985
+
[[rejection]]
986
+
id = "snowflake_role_revoke_without_role_lists"
987
+
sql = "REVOKE role1, role2 FROM user1, \"user2@example.com\" RESTRICT;"
988
+
dialects = ["Snowflake"]
989
+
sqlquack_error = "Expected a privilege"
990
+
note = "Postgres revokes role membership without ROLE; Snowflake writes REVOKE ROLE <name> FROM { ROLE | USER } <name>, as GRANT ROLE, which refuses the form without ROLE with syntax error 1003"
991
+
915
992
[[rejection]]
916
993
id = "snowflake_describe_bare_name"
917
994
sql = "DESCRIBE x"
@@ -1137,6 +1214,12 @@ note = "a table clone's AT | BEFORE ( TIMESTAMP | OFFSET | STATEMENT => <expr> )
1137
1214
# The check counts an entry only when polyglot's tree is a single command, SQLQuack's tree starts
1138
1215
# with `sqlquack_node`, and the statement, without whitespace and ignoring case, contains `marker`.
1139
1216
1217
+
[[structured]]
1218
+
id = "snowflake_storage_integration_properties"
1219
+
marker = "CREATESTORAGEINTEGRATION"
1220
+
sqlquack_node = "create_object"
1221
+
note = "a Snowflake CREATE STORAGE INTEGRATION parses into its name and its property list, each property's kind and value; polyglot keeps the statement as raw SQL; crates/sqlquack-syntax/tests/parser/test_snowflake_create_properties.rs pins the tree"
0 commit comments