Indhumathi27 commented on a change in pull request #3714:
URL:
https://github.com/apache/carbondata/pull/3714#discussion_r416716140##########
File path: core/src/main/java/org/apache/carbondata/core/index/TableIndex.java
##########
@@ -595,6 +595,30 @@ public void onEvent(Event event, OperationContext opContext) {
throws IOException {
List<Segment> segments = getCarbonSegments(allsegments);
Map<String, Long> blockletToRowCountMap = new HashMap<>();
+ for (Segment segment : segments) {
+ List<CoarseGrainIndex> indexes = defaultIndex.getIndexFactory().getIndexes(segment);
+ for (CoarseGrainIndex index : indexes) {
+ if (null != partitions) {
+ // if it has partitioned index but there is no partitioned information stored, it means
+ // partitions are dropped so return empty list.
+ if (index.validatePartitionInfo(partitions)) {
+ return new HashMap<>();
+ }
+ }
+ index.getRowCountForEachBlock(segment, partitions, blockletToRowCountMap);
+ }
+ }
+ return blockletToRowCountMap;
+ }
+
+ /**
+ * Get the mapping of blocklet path and row count for all blocks. This method skips the
Review comment:
done
----------------------------------------------------------------
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:
[hidden email]