carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ravipesala <...@git.apache.org>
Subject [GitHub] carbondata pull request #1443: [CARBONDATA-1524][CARBONDATA-1525][AggTable] ...
Date Fri, 10 Nov 2017 07:51:04 GMT
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.


---

Mime
View raw message