hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jcama...@apache.org
Subject hive git commit: HIVE-12800: HiveFilterSetOpTransposeRule might be executed over non deterministic filter predicates (Jesus Camacho Rodriguez, reviewed by Laljo John Pullokkaran)
Date Sat, 09 Jan 2016 11:51:23 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-2.0 4e0139cf1 -> a9ae63bd0


HIVE-12800: HiveFilterSetOpTransposeRule might be executed over non deterministic filter predicates
(Jesus Camacho Rodriguez, reviewed by Laljo John Pullokkaran)


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/a9ae63bd
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/a9ae63bd
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/a9ae63bd

Branch: refs/heads/branch-2.0
Commit: a9ae63bd0d2f5b9c0b60b37d1397d1aa44ac0bd1
Parents: 4e0139c
Author: Jesus Camacho Rodriguez <jcamacho@apache.org>
Authored: Sat Jan 9 12:51:07 2016 +0100
Committer: Jesus Camacho Rodriguez <jcamacho@apache.org>
Committed: Sat Jan 9 12:51:07 2016 +0100

----------------------------------------------------------------------
 .../calcite/rules/HiveFilterSetOpTransposeRule.java   | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/a9ae63bd/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveFilterSetOpTransposeRule.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveFilterSetOpTransposeRule.java
b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveFilterSetOpTransposeRule.java
index 5c16d8f..3ee29e0 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveFilterSetOpTransposeRule.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveFilterSetOpTransposeRule.java
@@ -19,15 +19,23 @@ package org.apache.hadoop.hive.ql.optimizer.calcite.rules;
 
 import org.apache.calcite.plan.RelOptRuleCall;
 import org.apache.calcite.rel.core.Filter;
-import org.apache.calcite.rel.core.RelFactories.FilterFactory;
 import org.apache.calcite.rel.rules.FilterSetOpTransposeRule;
 import org.apache.calcite.rex.RexNode;
+import org.apache.calcite.tools.RelBuilderFactory;
 import org.apache.hadoop.hive.ql.optimizer.calcite.HiveCalciteUtil;
+import org.apache.hadoop.hive.ql.optimizer.calcite.HiveRelFactories;
+
 
 public class HiveFilterSetOpTransposeRule extends FilterSetOpTransposeRule {
 
-  public HiveFilterSetOpTransposeRule(FilterFactory filterFactory) {
-    super(filterFactory);
+  public static final HiveFilterSetOpTransposeRule INSTANCE =
+          new HiveFilterSetOpTransposeRule(HiveRelFactories.HIVE_BUILDER);
+
+  /**
+   * Creates a HiveFilterSetOpTransposeRule.
+   */
+  private HiveFilterSetOpTransposeRule(RelBuilderFactory relBuilderFactory) {
+    super(relBuilderFactory);
   }
 
   @Override


Mime
View raw message