Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-32680

CTAS with V2 catalog wrongly accessed unresolved query

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.2, 3.1.0
    • SQL
    • None

    Description

      Case:

      CREATE TABLE t USING delta AS SELECT * from nonexist 

       

      Expected:

      throw AnalysisException with "Table or view not found"

       

      Actual:

      throw UnresolvedException with "org.apache.spark.sql.catalyst.analysis.UnresolvedException: Invalid call to toAttribute on unresolved object, tree: *"

      Attachments

        Activity

          People

            linhongliu-db Linhong Liu
            linhongliu-db Linhong Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: