[ https://issues.apache.org/jira/browse/HIVE-11448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653182#comment-14653182 ]
Gopal V commented on HIVE-11448: -------------------------------- [~mmccline]: I found that under some conditions - subtract() args are mixed up. The assert that you need to trigger is that none of the inputs overlap each other. Preconditions.check((all != remove) || (remove != difference) || (difference != all)); Under some conditions, I found that remove == difference, which was triggering most of the errors which start with. {code} Caused by: java.lang.RuntimeException: Not all batch indices removed at org.apache.hadoop.hive.ql.exec.vector.expressions.FilterExprOrExpr.subtract(FilterExprOrExpr.java:108) at org.apache.hadoop.hive.ql.exec.vector.expressions.FilterExprOrExpr.evaluate(FilterExprOrExpr.java:214) at org.apache.hadoop.hive.ql.exec.vector.VectorFilterOperator.process(VectorFilterOperator.java:106) at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:837) at org.apache.hadoop.hive.ql.exec.TableScanOperator.process(TableScanOperator.java:97) at org.apache.hadoop.hive.ql.exec.MapOperator$MapOpCtx.forward(MapOperator.java:162) at org.apache.hadoop.hive.ql.exec.vector.VectorMapOperator.process(VectorMapOperator.java:45) ... 18 more {code} > Support vectorization of Multi-OR and Multi-AND > ----------------------------------------------- > > Key: HIVE-11448 > URL: https://issues.apache.org/jira/browse/HIVE-11448 > Project: Hive > Issue Type: Bug > Components: Hive > Reporter: Matt McCline > Assignee: Matt McCline > Priority: Critical > Attachments: HIVE-11448.01.patch, HIVE-11448.02.patch > > > Support more than 2 children for OR and AND when all children are expressions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)