carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackylk <...@git.apache.org>
Subject [GitHub] carbondata pull request #1748: [CARBONDATA-1967][PARTITION] Fix autocompacti...
Date Wed, 03 Jan 2018 06:47:40 GMT
Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/1748#discussion_r159367283
  
    --- 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 --
    
    include the `e` in the constructor of Exception


---

Mime
View raw message