This is an automated email from the ASF dual-hosted git repository. jcamacho pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/hive.git
commit 9a2f7b0e49a6b93fc127084e856a5ad44e7006f4 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 5fdb4bd..d64f983 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 @@ -631,12 +631,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
