You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Maxim Gekk (Jira)" <ji...@apache.org> on 2021/02/18 19:19:00 UTC
[jira] [Created] (SPARK-34468) Fix v2 ALTER TABLE .. RENAME TO
Maxim Gekk created SPARK-34468:
----------------------------------
Summary: 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
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