Posted by
GitBox on
Jan 05, 2021; 2:05pm
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-nihal0107-opened-a-new-pull-request-4068-CARBONDATA-3987-Handled-filter-and-IUD-opK-tp105205p105295.html
ajantha-bhat commented on a change in pull request #4068:
URL:
https://github.com/apache/carbondata/pull/4068#discussion_r551951489##########
File path: sdk/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonReaderBuilder.java
##########
@@ -427,6 +438,67 @@ private CarbonFileInputFormat prepareFileInputFormat(Job job, boolean enableBloc
}
}
+ private <T> void totalRowCountInSplits(Job job, List<InputSplit> splits,
+ List<Long> rowCountInSplit)
+ throws IOException, InterruptedException {
+ CarbonFileInputFormat format = this.prepareFileInputFormat(job, false, true);
+ long sum = 0;
+ boolean isIUDTable = false;
+ if (!StringUtils.isEmpty(this.tablePath)) {
+ // Get store path of the table.
+ String schemaFilePath = CarbonTablePath.getSchemaFilePath(this.tablePath, this.hadoopConf);
+ // If metadata folder exists, it is a transactional table
+ CarbonFile schemaFile = FileFactory.getCarbonFile(schemaFilePath, this.hadoopConf);
+ boolean isTransactionalTable = schemaFile.exists();
+ // Check if update or delete happened on the table.
+ if (!isTransactionalTable) {
+ CarbonFile emptyMetadataFile = FileFactory.getCarbonFile(this.tablePath +
Review comment:
same comment as above, I think this method is called for non-transactional table only
----------------------------------------------------------------
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]