Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ariesdevil committed Nov 30, 2023
1 parent c367e9c commit d3eb784
Show file tree
Hide file tree
Showing 2 changed files with 748 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/query/ast/src/parser/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ pub fn set_operation_element(i: Input) -> IResult<WithSpan<SetOperationElement>>
~ ( GROUP ~ ^BY ~ ^#group_by_items )?
~ ( HAVING ~ ^#expr )?
~ ( WINDOW ~ ^#comma_separated_list1(window_clause) )?
~ ( QUALIFY ~ ^#expr )?
},
|(
opt_from_block,
Expand All @@ -157,6 +158,7 @@ pub fn set_operation_element(i: Input) -> IResult<WithSpan<SetOperationElement>>
opt_group_by_block,
opt_having_block,
opt_window_block,
opt_qualify_block,
)| {
SetOperationElement::SelectStmt {
hints: opt_hints,
Expand All @@ -171,6 +173,7 @@ pub fn set_operation_element(i: Input) -> IResult<WithSpan<SetOperationElement>>
group_by: opt_group_by_block.map(|(_, _, group_by)| group_by),
having: Box::new(opt_having_block.map(|(_, having)| having)),
window_list: opt_window_block.map(|(_, windows)| windows),
qualify: Box::new(opt_qualify_block.map(|(_, qualify)| qualify)),
}
},
);
Expand Down
Loading

0 comments on commit d3eb784

Please sign in to comment.