Maxim Gekk created SPARK-34439: ---------------------------------- Summary: 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
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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org