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 2021/02/19 18:07:00 UTC
[jira] [Assigned] (SPARK-34468) Fix v2 ALTER TABLE .. RENAME TO
[ https://issues.apache.org/jira/browse/SPARK-34468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-34468:
------------------------------------
Assignee: Apache Spark
> Fix v2 ALTER TABLE .. RENAME TO
> -------------------------------
>
> Key: SPARK-34468
> URL: https://issues.apache.org/jira/browse/SPARK-34468
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Maxim Gekk
> Assignee: Apache Spark
> Priority: Major
>
> The v2 `ALTER TABLE .. RENAME TO` command should rename a table in-place instead of moving it to the "root" namespace:
> {code:scala}
> sql("ALTER TABLE ns1.ns2.ns3.src_tbl RENAME TO dst_tbl")
> sql(s"SHOW TABLES IN $catalog").show(false)
> +---------+---------+-----------+
> |namespace|tableName|isTemporary|
> +---------+---------+-----------+
> | |dst_tbl |false |
> +---------+---------+-----------+
> {code}
--
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