You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by jc...@apache.org on 2018/07/30 14:21:50 UTC

hive git commit: HIVE-20263: Typo in HiveReduceExpressionsWithStatsRule variable (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)

Repository: hive
Updated Branches:
  refs/heads/master 1203ee834 -> 350445d29


HIVE-20263: Typo in HiveReduceExpressionsWithStatsRule variable (Jesus Camacho Rodriguez, reviewed by Ashutosh Chauhan)


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

Branch: refs/heads/master
Commit: 350445d29371d6f085b6b592e3f440d7baaf71e0
Parents: 1203ee8
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Mon Jul 30 07:21:39 2018 -0700
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Mon Jul 30 07:21:39 2018 -0700

----------------------------------------------------------------------
 .../calcite/rules/HiveReduceExpressionsWithStatsRule.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/350445d2/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveReduceExpressionsWithStatsRule.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveReduceExpressionsWithStatsRule.java b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveReduceExpressionsWithStatsRule.java
index 3a5ce39..f7712e6 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveReduceExpressionsWithStatsRule.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/optimizer/calcite/rules/HiveReduceExpressionsWithStatsRule.java
@@ -214,7 +214,7 @@ public class HiveReduceExpressionsWithStatsRule extends RelOptRule {
             RexCall constStruct = (RexCall) call.getOperands().get(i);
             boolean allTrue = true;
             boolean addOperand = true;
-            for (int j = 0; i < constStruct.getOperands().size(); j++) {
+            for (int j = 0; j < constStruct.getOperands().size(); j++) {
               RexNode operand = constStruct.getOperands().get(j);
               if (operand instanceof RexLiteral) {
                 RexLiteral literal = (RexLiteral) operand;