Github user gatorsmile commented on a diff in the pull request:

    https://github.com/apache/spark/pull/21594#discussion_r197591886
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/ddl.scala ---
    @@ -204,9 +205,10 @@ case class DropTableCommand(
           }
         }
     
    -    if (catalog.isTemporaryTable(tableName) || 
catalog.tableExists(tableName)) {
    +    if (isTempTable || catalog.tableExists(tableName)) {
           try {
    -        
sparkSession.sharedState.cacheManager.uncacheQuery(sparkSession.table(tableName))
    +        sparkSession.sharedState.cacheManager.uncacheQuery(
    +          sparkSession.table(tableName), !isTempTable)
    --- End diff --
    
    `cascade = !isTempTable`


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to