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

CTAS with V2 catalog wrongly accessed unresolved query

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.2, 3.1.0
    • Component/s: SQL
    • Labels:
      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

            • Assignee:
              linhongliu-db Linhong Liu
              Reporter:
              linhongliu-db Linhong Liu

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment