We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5172a99 commit 85845bbCopy full SHA for 85845bb
sqlglot/dialects/snowflake.py
@@ -552,6 +552,7 @@ class Parser(parser.Parser):
552
553
ID_VAR_TOKENS = {
554
*parser.Parser.ID_VAR_TOKENS,
555
+ TokenType.EXCEPT,
556
TokenType.MATCH_CONDITION,
557
}
558
tests/dialects/test_snowflake.py
@@ -89,6 +89,7 @@ def test_snowflake(self):
89
self.validate_identity("SELECT TRIM(COALESCE(TO_CHAR(CAST(c AS TIME)), '')) FROM t")
90
self.validate_identity("SELECT GET_PATH(PARSE_JSON(foo), 'bar')")
91
self.validate_identity("SELECT GET_PATH(foo, 'bar')")
92
+ self.validate_identity("SELECT a, exclude, b FROM xxx")
93
self.validate_identity(
94
"SELECT * FROM table AT (TIMESTAMP => '2024-07-24') UNPIVOT(a FOR b IN (c)) AS pivot_table"
95
)
0 commit comments