You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (Jira)" <ji...@apache.org> on 2020/07/25 19:40:00 UTC

[jira] [Commented] (SPARK-32382) Override table renaming in JDBC dialects

    [ https://issues.apache.org/jira/browse/SPARK-32382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17165110#comment-17165110 ] 

Apache Spark commented on SPARK-32382:
--------------------------------------

User 'MaxGekk' has created a pull request for this issue:
https://github.com/apache/spark/pull/29237

> Override table renaming in JDBC dialects
> ----------------------------------------
>
>                 Key: SPARK-32382
>                 URL: https://issues.apache.org/jira/browse/SPARK-32382
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>    Affects Versions: 3.1.0
>            Reporter: Maxim Gekk
>            Priority: Minor
>
> SPARK-32375 adds new method renameTable to JdbcDialect with the default implementation:
> {code:sql}
> ALTER TABLE table_name RENAME TO new_table_name;
> {code}
> which is supported by Oracle, MySQL, MariaDB, PostgreSQL and SQLite but other dialects might not support such syntax, for instance SQL Server (using the stored procedure called sp_rename):
> {code:sql}
> sp_rename 'table_name', 'new_table_name';
> {code}
> The ticket aims to support table renaming in all JDBC dialects.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org