ngsg commented on code in PR #4043:
URL: https://github.com/apache/hive/pull/4043#discussion_r1387525437
##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/ParallelEdgeFixer.java:
##########
@@ -325,6 +331,11 @@ public static Optional<Set<String>>
colMappingInverseKeys(ReduceSinkOperator rs)
Map<String, String> ret = new HashMap<String, String>();
Map<String, ExprNodeDesc> exprMap = rs.getColumnExprMap();
Set<String> neededColumns = new HashSet<String>();
+
+ if
(!rs.getSchema().getColumnNames().stream().allMatch(exprMap::containsKey)) {
Review Comment:
Sure, I removed neededColumns and added comments to explain the reason for
inversion failure.
--
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]