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


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ConvertJoinMapJoin.java:
##########
@@ -280,20 +280,20 @@ private boolean selectJoinForLlap(OptimizeTezProcContext 
context, JoinOperator j
         continue;
       }
       Operator<? extends OperatorDesc> parentOp = 
joinOp.getParentOperators().get(pos);
-      totalSize += computeOnlineDataSize(parentOp.getStatistics());
+      totalSize = StatsUtils.safeAdd(totalSize, 
computeOnlineDataSize(parentOp.getStatistics()));

Review Comment:
   I'm not sure it's appropriate to use safeAdd for a table size or 
cumulativeCardinality —should we use a wider type? 
   on the other side `hashTableDataSizeAdjustment` does that as well, so I 
guess it's fine
   cc @zabetak, @thomasrebele 



##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ConvertJoinMapJoin.java:
##########
@@ -280,20 +280,20 @@ private boolean selectJoinForLlap(OptimizeTezProcContext 
context, JoinOperator j
         continue;
       }
       Operator<? extends OperatorDesc> parentOp = 
joinOp.getParentOperators().get(pos);
-      totalSize += computeOnlineDataSize(parentOp.getStatistics());
+      totalSize = StatsUtils.safeAdd(totalSize, 
computeOnlineDataSize(parentOp.getStatistics()));

Review Comment:
   I'm not sure it's appropriate to use safeAdd for a table size —should we use 
a wider type? 
   on the other side `hashTableDataSizeAdjustment` does that as well, so I 
guess it's fine
   cc @zabetak, @thomasrebele 



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