This is an automated email from the ASF dual-hosted git repository. jcamacho pushed a commit to branch branch-3 in repository https://gitbox.apache.org/repos/asf/hive.git
commit 90ae60841e39ad5c7222911830c7d438e962a278 Author: Jesus Camacho Rodriguez <[email protected]> AuthorDate: Wed Apr 10 13:32:29 2019 -0700 HIVE-21600: GenTezUtils.removeSemiJoinOperator may throw out of bounds exception for TS with multiple children (Jesus Camacho Rodriguez, reviewed by Vineet Garg) --- ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java index 741833b..7188a0d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/GenTezUtils.java @@ -608,12 +608,12 @@ public class GenTezUtils { } } // Filter operator - filterDynamicValuePredicatesCollection = new DynamicValuePredicateContext(); for (Operator<?> op : ts.getChildOperators()) { if (!(op instanceof FilterOperator)) { continue; } FilterDesc filterDesc = ((FilterOperator) op).getConf(); + filterDynamicValuePredicatesCollection = new DynamicValuePredicateContext(); collectDynamicValuePredicates(filterDesc.getPredicate(), filterDynamicValuePredicatesCollection); for (ExprNodeDesc nodeToRemove : filterDynamicValuePredicatesCollection
