File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -361,7 +361,7 @@ pub enum TableFactor {
361
361
/// +---------+--------+
362
362
UNNEST {
363
363
alias : Option < TableAlias > ,
364
- expr : Expr ,
364
+ array_expr : Box < Expr > ,
365
365
with_offset : bool ,
366
366
} ,
367
367
/// Represents a parenthesized table factor. The SQL spec only allows a
@@ -417,10 +417,10 @@ impl fmt::Display for TableFactor {
417
417
}
418
418
TableFactor :: UNNEST {
419
419
alias,
420
- expr ,
420
+ array_expr ,
421
421
with_offset,
422
422
} => {
423
- write ! ( f, "UNNEST({})" , expr ) ?;
423
+ write ! ( f, "UNNEST({})" , array_expr ) ?;
424
424
if let Some ( alias) = alias {
425
425
write ! ( f, " AS {}" , alias) ?;
426
426
}
Original file line number Diff line number Diff line change @@ -3564,7 +3564,7 @@ impl<'a> Parser<'a> {
3564
3564
3565
3565
Ok ( TableFactor :: UNNEST {
3566
3566
alias,
3567
- expr,
3567
+ array_expr : Box :: new ( expr) ,
3568
3568
with_offset,
3569
3569
} )
3570
3570
} else {
Original file line number Diff line number Diff line change @@ -2718,7 +2718,7 @@ fn parse_unnest() {
2718
2718
name: Ident :: new( "numbers" ) ,
2719
2719
columns: vec![ ] ,
2720
2720
} ) ,
2721
- expr : Expr :: Identifier ( Ident :: new( "expr" ) ) ,
2721
+ array_expr : Box :: new ( Expr :: Identifier ( Ident :: new( "expr" ) ) ) ,
2722
2722
with_offset: true ,
2723
2723
} ,
2724
2724
joins: vec![ ] ,
You can’t perform that action at this time.
0 commit comments