Code review comments

This commit is contained in:
Yoav Cohen 2025-07-31 10:11:16 +02:00
parent d5ebce4f0d
commit f7d6322ed7
2 changed files with 2 additions and 10 deletions

View file

@ -511,15 +511,7 @@ impl Dialect for SnowflakeDialect {
fn is_table_factor(&self, kw: &Keyword, parser: &mut Parser) -> bool {
match kw {
Keyword::LIMIT
if matches!(
parser.peek_token().token,
Token::Number(_, _) | Token::Placeholder(_)
) =>
{
false
}
Keyword::LIMIT if peek_for_limit_options(parser) => false,
_ => !RESERVED_KEYWORDS_FOR_TABLE_FACTOR.contains(kw),
}
}

View file

@ -4515,4 +4515,4 @@ fn test_snowflake_identifier_function() {
snowflake().verified_stmt("GRANT ROLE IDENTIFIER('AAA') TO USER IDENTIFIER('AAA')");
snowflake().verified_stmt("REVOKE ROLE IDENTIFIER('AAA') FROM USER IDENTIFIER('AAA')");
}
}