deniskuzZ commented on code in PR #4477:
URL: https://github.com/apache/hive/pull/4477#discussion_r1277480953


##########
ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java:
##########
@@ -76,6 +79,20 @@ public static UnionWork createUnionWork(
     tezWork.add(unionWork);
     return unionWork;
   }
+  
+  private static boolean isRestrictReducerExtrapolation(GenTezProcContext 
context) {

Review Comment:
   could we refactor to
   ````
     private static boolean isRestrictReducerExtrapolation(Context context) {
       return context.getOperation() == Context.Operation.DELETE && 
context.getLoadTableOutputMap().values()
         
.stream().map(WriteEntity::getTable).anyMatch(DDLUtils::isIcebergTable);
     }
   -> isRestrictReducerExtrapolation(context.parseContext.getContext())
   ````



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