GitHub user dongjoon-hyun opened a pull request: https://github.com/apache/spark/pull/19888
[SPARK-22686][SQL] DROP TABLE IF EXISTS should not throw AnalysisException ## What changes were proposed in this pull request? During [SPARK-22488](https://github.com/apache/spark/pull/19713) to fix view resolution issue, there occurs a regression at `2.2.1` and `master` branch like the following. This PR fixes that. ```scala 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; ``` ## How was this patch tested? Manual. You can merge this pull request into a Git repository by running: $ git pull https://github.com/dongjoon-hyun/spark SPARK-22686 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/19888.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #19888 ---- commit 2b113a2871dc732d74b0564017bed15e53b297ab Author: Dongjoon Hyun <dongj...@apache.org> Date: 2017-12-05T05:01:53Z [SPARK-22686][SQL] DROP TABLE IF EXISTS should not throw AnalysisException ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org