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

DROP TABLE IF EXISTS should not show AnalysisException

    Details

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

            People

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

              Dates

              • Created:
                Updated:
                Resolved: