Snowflake: Improve support for reserved keywords for table factor (#1942)
Some checks are pending
license / Release Audit Tool (RAT) (push) Waiting to run
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run

This commit is contained in:
Yoav Cohen 2025-07-31 10:41:33 +02:00 committed by GitHub
parent 85fa881379
commit 3d2db8c69b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 103 additions and 12 deletions

View file

@ -4449,11 +4449,7 @@ impl<'a> Parser<'a> {
self.parse_comma_separated_with_trailing_commas(
Parser::parse_table_and_joins,
trailing_commas,
|kw, _parser| {
self.dialect
.get_reserved_keywords_for_table_factor()
.contains(kw)
},
|kw, parser| !self.dialect.is_table_factor(kw, parser),
)
}