kasakrisz commented on code in PR #5015:
URL: https://github.com/apache/hive/pull/5015#discussion_r1458485741


##########
ql/src/java/org/apache/hadoop/hive/ql/optimizer/SharedWorkOptimizer.java:
##########
@@ -650,7 +650,8 @@ protected void mergeSchema(TableScanOperator 
discardableTsOp, TableScanOperator
 
   private static boolean compatibleSchema(TableScanOperator tsOp1, 
TableScanOperator tsOp2) {
     return tsOp1.getNeededColumns().equals(tsOp2.getNeededColumns())
-        && tsOp1.getNeededColumnIDs().equals(tsOp2.getNeededColumnIDs());
+        && tsOp1.getNeededColumnIDs().equals(tsOp2.getNeededColumnIDs())
+        && 
tsOp1.getConf().getVirtualCols().equals(tsOp2.getConf().getVirtualCols());

Review Comment:
   Column pruning always set an empty array but I changed these to use 
`Obejcts.equals` for safety.



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