iffyio commented on code in PR #1790: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1790#discussion_r2026230661
########## src/parser/mod.rs: ########## @@ -14586,6 +14585,34 @@ impl<'a> Parser<'a> { Ok(clauses) } + fn parse_output(&mut self) -> Result<OutputClause, ParserError> { + self.expect_keyword_is(Keyword::OUTPUT)?; + let select_items = self.parse_projection()?; + self.expect_keyword_is(Keyword::INTO)?; + let into_table = self.parse_select_into()?; + + Ok(OutputClause { + select_items, + into_table, + }) + } + + fn parse_select_into(&mut self) -> Result<SelectInto, ParserError> { Review Comment: oh could we also update [this usage](https://github.com/apache/datafusion-sqlparser-rs/blob/01c7db690c01a84a5cf5d29445d3149889dbd02a/src/parser/mod.rs#L10913-L10924) to call this `parse_select_into()` function as well? -- 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