Skip to content

Snowflake: Improve support for reserved keywords for table factor #1942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 31, 2025

Conversation

yoavcloud
Copy link
Contributor

Aligned logic in the Dialect trait to other similar flows (is_column_alias, is_table_alias, etc) and added a list of reserved keywords in Snowflake.

Comment on lines 509 to 512
if matches!(
parser.peek_token().token,
Token::Number(_, _) | Token::Placeholder(_)
) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to use the peek_for_limit_options helper method here?

@yoavcloud yoavcloud force-pushed the sf_reserved_kws_table_factor branch from 29fc9b9 to f7d6322 Compare July 31, 2025 08:11
@yoavcloud yoavcloud requested a review from iffyio July 31, 2025 08:11
Copy link
Contributor

@iffyio iffyio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @yoavcloud!
cc @alamb

@iffyio iffyio merged commit 3d2db8c into apache:main Jul 31, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants