deniskuzZ commented on code in PR #5603:
URL: https://github.com/apache/hive/pull/5603#discussion_r1909982571
##########
ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/MRCompactor.java:
##########
@@ -571,11 +571,9 @@ public void readFields(DataInput dataInput) throws
IOException {
attemptId = Integer.valueOf(attemptIdString);
}
deltasToAttemptId.put(deltas[i].getName(), attemptId);
- if (baseAttemptId != null) {
- deltasToAttemptId.put(base.getName(), baseAttemptId);
- }
}
if (baseAttemptId != null) {
+ deltasToAttemptId.put(base.getName(), baseAttemptId);
Review Comment:
what if we use full path in OrcRawRecordMerger to fetch the attemptId?
````
if (deltasToAttemptId != null) {
attemptId = deltasToAttemptId.get(mergerOptions.getBaseDir().toString());
}
````
all TestCompactor tests passed
--
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]