mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-04 13:10:31 +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),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue