kunal642 commented on a change in pull request #3177: [CARBONDATA-3337][CARBONDATA-3306] Distributed index server URL: https://github.com/apache/carbondata/pull/3177#discussion_r278261101
########## File path: hadoop/src/main/java/org/apache/carbondata/hadoop/api/CarbonInputFormat.java ########## @@ -384,6 +408,33 @@ public static ReadCommittedScope getReadCommittedScope(Configuration configurati */ @Override public abstract List<InputSplit> getSplits(JobContext job) throws IOException; + List<ExtendedBlocklet> getDistributedSplit(CarbonTable table, + FilterResolverIntf filterResolverIntf, List<PartitionSpec> partitionNames, + List<Segment> validSegments, List<Segment> invalidSegments, DataMapLevel level) + throws IOException { + String className = "org.apache.carbondata.indexserver.DistributedDataMapJob"; + try { + DataMapJob dataMapJob = (DataMapJob) DataMapUtil.createDataMapJob(className); + if (dataMapJob == null) { + throw new ExceptionInInitializerError("Unable to create DistributedDataMapJob"); + } + return DataMapUtil + .executeDataMapJob(table, filterResolverIntf, FileFactory.getConfiguration(), + dataMapJob, partitionNames, validSegments, invalidSegments, null); + } catch (Exception e) { + if (CarbonProperties.getInstance().isFallBackDisabled()) { + throw e; + } else { 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: us...@infra.apache.org With regards, Apache Git Services