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: [email protected]
For additional commands, e-mail: [email protected]