[
https://issues.apache.org/jira/browse/SPARK-34439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Apache Spark reassigned SPARK-34439:
------------------------------------
Assignee: (was: Apache Spark)
> Recognize `spark_catalog` in new identifier while view/table renaming
> ---------------------------------------------------------------------
>
> Key: SPARK-34439
> URL: https://issues.apache.org/jira/browse/SPARK-34439
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Affects Versions: 3.2.0
> Reporter: Maxim Gekk
> Priority: Major
>
> Currently, v1 ALTER TABLE .. RENAME TO doesn't recognize spark_catalog in new
> view/table identifiers. The example below demonstrates the issue:
> {code:scala}
> spark-sql> CREATE DATABASE db;
> spark-sql> CREATE TABLE spark_catalog.db.tbl (c0 INT) USING parquet;
> spark-sql> INSERT INTO spark_catalog.db.tbl SELECT 0;
> spark-sql> SELECT * FROM spark_catalog.db.tbl;
> 0
> spark-sql> ALTER TABLE spark_catalog.db.tbl RENAME TO spark_catalog.db.tbl2;
> Error in query: spark_catalog.db.tbl2 is not a valid TableIdentifier as it
> has more than 2 name parts.
> {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]