nihal0107 commented on a change in pull request #4068: URL: https://github.com/apache/carbondata/pull/4068#discussion_r551340636
########## File path: sdk/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReaderBuilder.java ########## @@ -427,6 +436,50 @@ private CarbonFileInputFormat prepareFileInputFormat(Job job, boolean enableBloc } } + private <T> void totalRowCountInSplits(Job job, List<InputSplit> splits, + List<Long> rowCountInSplit) throws IOException, InterruptedException { + long sum = 0; + boolean isIUDTable = false; + // Check if update or delete happened on the table. + if (!StringUtils.isEmpty(this.tablePath)) { + CarbonFile[] fileList = FileFactory.getCarbonFile(this.tablePath, + this.hadoopConf).listFiles(); + for (CarbonFile file : fileList) { Review comment: Ok, Added an empty directory as a flag to check if update/delete happened for the non-transactional carbon table. ---------------------------------------------------------------- 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