veghlaci05 commented on a change in pull request #3034:
URL: https://github.com/apache/hive/pull/3034#discussion_r811735284



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Cleaner.java
##########
@@ -251,10 +249,10 @@ private void clean(CompactionInfo ci, long minOpenTxnGLB, 
boolean metricsEnabled
 
       if (t != null) {
         StorageDescriptor sd = resolveStorageDescriptor(t, p);
-        cleanUpTask = () -> removeFiles(location.orElse(sd.getLocation()), 
minOpenTxnGLB, ci,
+        cleanUpTask = () -> removeFiles(sd.getLocation(), minOpenTxnGLB, ci,

Review comment:
       If you check line 214-218, _t_ can have value only if _location_ is 
null, therefore the orElse was unnecessary, and the change is compatible.




-- 
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]

Reply via email to