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

    https://github.com/apache/carbondata/pull/1443#discussion_r150170606
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/CarbonDropTableCommand.scala
 ---
    @@ -60,33 +62,40 @@ case class CarbonDropTableCommand(
             lock => carbonLocks += 
CarbonLockUtil.getLockObject(carbonTableIdentifier, lock)
           }
           LOGGER.audit(s"Deleting table [$tableName] under database [$dbName]")
    -
    -      // fires the event before dropping main table
    -      val carbonTable = CarbonMetadata.getInstance.getCarbonTable(dbName + 
"_" + tableName)
    +      val carbonTable: Option[CarbonTable] = try {
    --- End diff --
    
    try get from cache using `getTableFromMetadataCache` if not get then do 
lookup.


---

Reply via email to