Indhumathi27 commented on a change in pull request #3639: [CARBONDATA-3724]
Secondary Index enable on partition Table
URL: https://github.com/apache/carbondata/pull/3639#discussion_r387472308
##########
File path:
hadoop/src/main/java/org/apache/carbondata/hadoop/api/CarbonTableInputFormat.java
##########
@@ -188,7 +189,10 @@
List<Segment> segmentToAccess =
getFilteredSegment(job, validAndInProgressSegments, false,
readCommittedScope);
-
+ String segmentFileName =
job.getConfiguration().get(CarbonCommonConstants.CURRENT_SEGMENTFILE);
+ if (segmentFileName != null) {
+ segmentToAccess.get(0).setSegmentFileName(segmentFileName +
CarbonTablePath.SEGMENT_EXT);
Review comment:
why you are setting segmentFileName to only first segment of segmentToAccess
list? Can you please add comments
----------------------------------------------------------------
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]
With regards,
Apache Git Services