pvary commented on a change in pull request #1085:
URL: https://github.com/apache/hive/pull/1085#discussion_r439336416



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Initiator.java
##########
@@ -353,6 +354,16 @@ private CompactionType 
determineCompactionType(CompactionInfo ci, ValidWriteIdLi
           HiveConf.getFloatVar(conf, 
HiveConf.ConfVars.HIVE_COMPACTOR_DELTA_PCT_THRESHOLD) :
           Float.parseFloat(deltaPctProp);
       boolean bigEnough =   (float)deltaSize/(float)baseSize > 
deltaPctThreshold;
+      boolean multiBase = dir.getObsolete().stream()
+              .filter(path -> 
path.getName().startsWith(AcidUtils.BASE_PREFIX)).count() >= 1;

Review comment:
       Maybe use findAny() instead of count()?




----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to