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/15 09:31:00 UTC

[jira] [Assigned] (SPARK-34439) Recognize `spark_catalog` in new identifier while view/table renaming

     [ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org