dilovancelik commented on code in PR #1790:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/1790#discussion_r2025413049
##########
src/parser/mod.rs:
##########
@@ -14489,7 +14489,10 @@ impl<'a> Parser<'a> {
pub fn parse_merge_clauses(&mut self) -> Result<Vec<MergeClause>,
ParserError> {
let mut clauses = vec![];
loop {
- if self.peek_token() == Token::EOF || self.peek_token() ==
Token::SemiColon {
+ if self.peek_token() == Token::EOF
+ || self.peek_token() == Token::SemiColon
+ || self.peek_keyword(Keyword::OUTPUT)
Review Comment:
I definitely see your point. I implemented and had to remove the
expect_keyword_is below since the keyword is consumed in the check
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]