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 #1748: [CARBONDATA-1967][PARTITION] Fix autocompacti...
Date Wed, 03 Jan 2018 16:44:47 GMT
Github user ravipesala commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1748#discussion_r159470910
  
    --- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonLoadDataCommand.scala
---
    @@ -640,6 +650,18 @@ case class CarbonLoadDataCommand(
         } else {
           Dataset.ofRows(sparkSession, convertedPlan)
         }
    +    try {
    +      // Trigger auto compaction
    +      CarbonDataRDDFactory.handleSegmentMerging(
    +        sparkSession.sqlContext,
    +        carbonLoadModel,
    +        table,
    +        operationContext)
    +    } catch {
    +      case e: Exception =>
    +        throw new Exception(
    +          "Dataload is success. Auto-Compaction has failed. Please check logs.")
    --- End diff --
    
    ok


---

Mime
View raw message