deniskuzZ commented on code in PR #4520:
URL: https://github.com/apache/hive/pull/4520#discussion_r1302577650
##########
ql/src/java/org/apache/hadoop/hive/ql/plan/ConditionalResolverMergeFiles.java:
##########
@@ -168,14 +178,24 @@ public List<Task<?>> getTasks(HiveConf conf, Object
objCtx) {
int dpLbLevel = numDPCols + lbLevel;
generateActualTasks(conf, resTsks, trgtSize, avgConditionSize,
mvTask, mrTask,
- mrAndMvTask, dirPath, inpFs, ctx, work, dpLbLevel);
+ mrAndMvTask, dirPath, inpFs, ctx, work, dpLbLevel,
manifestFilePresent);
} else { // no dynamic partitions
if(lbLevel == 0) {
// static partition without list bucketing
- long totalSz = getMergeSize(inpFs, dirPath, avgConditionSize);
- Utilities.FILE_OP_LOGGER.debug("merge resolve simple case -
totalSz " + totalSz + " from " + dirPath);
+ List<FileStatus> manifestFilePaths = new ArrayList<>();
+ long totalSz;
+ if (manifestFilePresent) {
+ manifestFilePaths = getManifestFilePaths(conf, dirPath);
+ totalSz = getMergeSize(manifestFilePaths, avgConditionSize);
+ } else {
+ totalSz = getMergeSize(inpFs, dirPath, avgConditionSize);
+ Utilities.FILE_OP_LOGGER.debug("merge resolve simple case -
totalSz " + totalSz + " from " + dirPath);
Review Comment:
totalSize
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]