mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 11:17:23 +00:00
Code review comments
This commit is contained in:
parent
d5ebce4f0d
commit
f7d6322ed7
2 changed files with 2 additions and 10 deletions
|
@ -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),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue