nihal0107 commented on a change in pull request #4015:
URL: https://github.com/apache/carbondata/pull/4015#discussion_r530769072



##########
File path: 
integration/spark/src/main/scala/org/apache/spark/sql/index/CarbonIndexUtil.scala
##########
@@ -299,6 +301,30 @@ object CarbonIndexUtil {
         .Map((carbonLoadModel.getSegmentId, carbonLoadModel.getFactTimeStamp))
     }
     val header = 
indexTable.getCreateOrderColumn.asScala.map(_.getColName).toArray
+    var segmentList = new ListBuffer[String]()
+    if (isInsertOverWrite) {
+      val loadMetadataDetails = carbonLoadModel.getLoadMetadataDetails.asScala
+      for (loadMetadata <- loadMetadataDetails) {
+        if (loadMetadata.getSegmentStatus != 
SegmentStatus.INSERT_OVERWRITE_IN_PROGRESS) {
+          segmentList += loadMetadata.getLoadName
+          segmentIdToLoadStartTimeMapping.put(loadMetadata.getLoadName,
+            loadMetadata.getLoadStartTime)
+        }
+      }
+      if (segmentList.nonEmpty) {

Review comment:
       made the changes




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to