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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org