Indhumathi27 commented on a change in pull request #3723:
URL: https://github.com/apache/carbondata/pull/3723#discussion_r412931653



##########
File path: core/src/main/java/org/apache/carbondata/core/index/IndexUtil.java
##########
@@ -198,25 +198,17 @@ public static void loadIndexes(CarbonTable carbonTable, 
IndexExprWrapper indexEx
       String clsName = 
"org.apache.spark.sql.secondaryindex.Jobs.SparkBlockletIndexLoaderJob";
       IndexJob indexJob = (IndexJob) createIndexJob(clsName);
       String className = 
"org.apache.spark.sql.secondaryindex.Jobs.BlockletIndexInputFormat";
-      SegmentStatusManager.ValidAndInvalidSegmentsInfo 
validAndInvalidSegmentsInfo =
-          getValidAndInvalidSegments(carbonTable, 
FileFactory.getConfiguration());
-      List<Segment> invalidSegments = 
validAndInvalidSegmentsInfo.getInvalidSegments();
       FileInputFormat indexFormat =
-          createIndexJob(carbonTable, indexExprWrapper, validSegments, 
invalidSegments,
-              partitionsToPrune, className, false);
+          createIndexJob(carbonTable, indexExprWrapper, validSegments, 
className);

Review comment:
       Please add an UT with Carbon load indexes parallel enabled, to avoid 
these issues in future




----------------------------------------------------------------
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:
[email protected]


Reply via email to