Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-33392 Align DSv2 commands to DSv1 implementation
  3. SPARK-34439

Recognize `spark_catalog` in new identifier while view/table renaming

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 3.2.0
    • None
    • SQL
    • None

    Description

      Currently, v1 ALTER TABLE .. RENAME TO doesn't recognize spark_catalog in new view/table identifiers. The example below demonstrates the issue:

      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.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            maxgekk Max Gekk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: