mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-09-04 13:10:31 +00:00
fix: unnest join constraint with alias parsing for BigQuery dialect (#732)
* fix: unnest join constraint with alias parsing for BigQuery dialect * chore: fix failing tests
This commit is contained in:
parent
650c53dc77
commit
d420001c37
3 changed files with 33 additions and 21 deletions
|
@ -5291,12 +5291,15 @@ impl<'a> Parser<'a> {
|
|||
Err(_) => false,
|
||||
};
|
||||
|
||||
let with_offset_alias =
|
||||
let with_offset_alias = if with_offset {
|
||||
match self.parse_optional_alias(keywords::RESERVED_FOR_COLUMN_ALIAS) {
|
||||
Ok(Some(alias)) => Some(alias),
|
||||
Ok(None) => None,
|
||||
Err(e) => return Err(e),
|
||||
};
|
||||
}
|
||||
} else {
|
||||
None
|
||||
};
|
||||
|
||||
Ok(TableFactor::UNNEST {
|
||||
alias,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue