ngsg commented on code in PR #4043:
URL: https://github.com/apache/hive/pull/4043#discussion_r1388034064
##########
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:
The added qfile, sharedwork_semi_2.q, reproduces the issue and it does not
require large data.
--
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]