iffyio commented on code in PR #1965:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/1965#discussion_r2226153975


##########
src/ast/ddl.rs:
##########
@@ -264,6 +264,7 @@ pub enum AlterTableOperation {
     },
     /// `RENAME TO <table_name>`
     RenameTable {
+        to_keyword: bool,
         table_name: ObjectName,

Review Comment:
   Could we introduce a wrapper enum to encode this new alternative behavior? 
thinking something like
   ```rust
   enum RenameTableNameKind {
       As(ObjectName),
       To(ObjectName)
   }
   RenameTable { table_name: RenameTableNameKind }
   ```



-- 
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

Reply via email to