MaxGekk opened a new pull request #29237:
URL: https://github.com/apache/spark/pull/29237


   ### What changes were proposed in this pull request?
   Override the default implementation of `JdbcDialect.renameTable()`:
   ```scala
   s"ALTER TABLE $oldTable RENAME TO $newTable"
   ```
   in the following JDBC dialects according to official documentation:
   - DB2
   - Derby
   - MS SQL Server
   - Teradata
   
   Other dialects follow the default implementation:
   - MySQL: https://dev.mysql.com/doc/refman/8.0/en/alter-table.html
   - Oracle: 
https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/ALTER-TABLE.html#GUID-552E7373-BF93-477D-9DA3-B2C9386F2877
   - PostgreSQL: https://www.postgresql.org/docs/12/sql-altertable.html
   
   ### Why are the changes needed?
   To have correct implementation of table renaming for all supported JDBC 
dialects.
   
   ### Does this PR introduce _any_ user-facing change?
   Yes
   
   ### How was this patch tested?
   Manually


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

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to