akashrn5 commented on a change in pull request #3988: URL: https://github.com/apache/carbondata/pull/3988#discussion_r615721648
########## File path: integration/spark/src/main/scala/org/apache/spark/sql/events/MergeIndexEventListener.scala ########## @@ -140,19 +141,47 @@ class MergeIndexEventListener extends OperationEventListener with Logging { .get .filterNot(streamingSegment.contains(_)) } + validSegments.foreach { segment => + if (segmentsToMerge.contains(segment.getSegmentNo)) { Review comment: move this if check as `.filter` before ` foreach` -- 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