mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-30 10:47:22 +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
|
@ -3683,25 +3683,6 @@ fn parse_unnest() {
|
|||
joins: vec![],
|
||||
}],
|
||||
);
|
||||
// 5. WITH OFFSET and WITH OFFSET Alias
|
||||
chk(
|
||||
true,
|
||||
false,
|
||||
true,
|
||||
&dialects,
|
||||
vec![TableWithJoins {
|
||||
relation: TableFactor::UNNEST {
|
||||
alias: Some(TableAlias {
|
||||
name: Ident::new("numbers"),
|
||||
columns: vec![],
|
||||
}),
|
||||
array_expr: Box::new(Expr::Identifier(Ident::new("expr"))),
|
||||
with_offset: false,
|
||||
with_offset_alias: Some(Ident::new("with_offset_alias")),
|
||||
},
|
||||
joins: vec![],
|
||||
}],
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue