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

    https://github.com/apache/carbondata/pull/2277#discussion_r186371022
  
    --- Diff: 
integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/management/CarbonLoadDataCommand.scala
 ---
    @@ -756,13 +756,19 @@ case class CarbonLoadDataCommand(
         }
         try {
           carbonLoadModel.setFactTimeStamp(System.currentTimeMillis())
    +      val compactedSegments = new util.ArrayList[String]()
           // Trigger auto compaction
           CarbonDataRDDFactory.handleSegmentMerging(
             sparkSession.sqlContext,
             carbonLoadModel,
             table,
    +        compactedSegments,
             operationContext)
    -
    +      carbonLoadModel.setMergedSegmentIds(compactedSegments)
    +      val loadTablePreStatusUpdateEvent: LoadTablePreStatusUpdateEvent =
    +        new LoadTablePreStatusUpdateEvent(table.getCarbonTableIdentifier,
    +          carbonLoadModel)
    +      
OperationListenerBus.getInstance().fireEvent(loadTablePreStatusUpdateEvent, 
operationContext)
    --- End diff --
    
    Please re verify. I think LoadTablePreStatusUpdateEvent event is not 
required to be triggered here


---

Reply via email to