Add support for Snowflake identifier function (#1929)

This commit is contained in:
Yoav Cohen 2025-07-10 17:15:50 +02:00 committed by GitHub
parent 93450cc250
commit b1a6d11e12
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 286 additions and 69 deletions

View file

@ -1232,7 +1232,6 @@ fn parse_select_expr_star() {
"SELECT 2. * 3 FROM T",
);
dialects.verified_only_select("SELECT myfunc().* FROM T");
dialects.verified_only_select("SELECT myfunc().* EXCEPT (foo) FROM T");
// Invalid
let res = dialects.parse_sql_statements("SELECT foo.*.* FROM T");
@ -1240,6 +1239,11 @@ fn parse_select_expr_star() {
ParserError::ParserError("Expected: end of statement, found: .".to_string()),
res.unwrap_err()
);
let dialects = all_dialects_where(|d| {
d.supports_select_expr_star() && d.supports_select_wildcard_except()
});
dialects.verified_only_select("SELECT myfunc().* EXCEPT (foo) FROM T");
}
#[test]