Github user cloud-fan commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19888#discussion_r154883352
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala ---
    @@ -203,14 +203,16 @@ case class DropTableCommand(
             case _ =>
           }
         }
    -    try {
    -      
sparkSession.sharedState.cacheManager.uncacheQuery(sparkSession.table(tableName))
    -    } catch {
    -      case _: NoSuchTableException if ifExists =>
    -      case NonFatal(e) => log.warn(e.toString, e)
    +
    +    if (!ifExists || catalog.tableExists(tableName)) {
    --- End diff --
    
    We can also update the UNCACHE TABLE, cc @gatorsmile 


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to