mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-14 15:59:03 +00:00
Support UNNEST
as a table factor for PostgreSQL (#968)
This commit is contained in:
parent
0480ee9886
commit
a16791d019
2 changed files with 28 additions and 1 deletions
|
@ -6240,7 +6240,7 @@ impl<'a> Parser<'a> {
|
|||
// appearing alone in parentheses (e.g. `FROM (mytable)`)
|
||||
self.expected("joined table", self.peek_token())
|
||||
}
|
||||
} else if dialect_of!(self is BigQueryDialect | GenericDialect)
|
||||
} else if dialect_of!(self is BigQueryDialect | PostgreSqlDialect | GenericDialect)
|
||||
&& self.parse_keyword(Keyword::UNNEST)
|
||||
{
|
||||
self.expect_token(&Token::LParen)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue