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

DROP TABLE IF EXISTS should not show AnalysisException

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2, 2.3.0
    • SQL
    • None

    Description

      During SPARK-22488 to Fix the view resolution issue, there occurs a regression at 2.2.1 and master branch like the following.

      scala> spark.version
      res2: String = 2.2.1
      
      scala> sql("DROP TABLE IF EXISTS t").show
      17/12/04 21:01:06 WARN DropTableCommand: org.apache.spark.sql.AnalysisException: Table or view not found: t;
      org.apache.spark.sql.AnalysisException: Table or view not found: t;
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dongjoon Dongjoon Hyun
            dongjoon Dongjoon Hyun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment