wugeer commented on code in PR #1616: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1616#discussion_r1898556472
########## src/parser/mod.rs: ########## @@ -1044,6 +1046,16 @@ impl<'a> Parser<'a> { Ok(Statement::NOTIFY { channel, payload }) } + pub fn parse_rename(&mut self) -> Result<Statement, ParserError> { + if self.dialect.supports_rename_table() && self.peek_keyword(Keyword::TABLE) { + self.expect_keyword(Keyword::TABLE)?; + let operations = self.parse_comma_separated(Parser::parse_rename_object_def)?; + Ok(Statement::RenameTable { operations }) + } else { + self.expected("an object type after RENAME", self.peek_token()) Review Comment: Good idea! Have Done. -- 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