hadoop-hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject svn commit: r806018 - in /hadoop/hive/branches/branch-0.4: CHANGES.txt ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java ql/src/test/queries/clientnegative/input_part0_neg.q ql/src/test/results/clientnegative/input_part0_neg.q.out
Date Thu, 20 Aug 2009 01:42:37 GMT
Author: namit
Date: Thu Aug 20 01:42:37 2009
New Revision: 806018

URL: http://svn.apache.org/viewvc?rev=806018&view=rev
Log:
HIVE-769. Fix bug in partition pruning - bug in patch (Zheng Shao via namit)


Added:
    hadoop/hive/branches/branch-0.4/ql/src/test/queries/clientnegative/input_part0_neg.q
    hadoop/hive/branches/branch-0.4/ql/src/test/results/clientnegative/input_part0_neg.q.out
Modified:
    hadoop/hive/branches/branch-0.4/CHANGES.txt
    hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java

Modified: hadoop/hive/branches/branch-0.4/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.4/CHANGES.txt?rev=806018&r1=806017&r2=806018&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.4/CHANGES.txt (original)
+++ hadoop/hive/branches/branch-0.4/CHANGES.txt Thu Aug 20 01:42:37 2009
@@ -514,6 +514,8 @@
 
     HIVE-769. Fix bug in partition pruning (Zheng Shao via namit)
 
+    HIVE-769. Fix bug in partition pruning - bug in patch (Zheng Shao via namit)
+
 Release 0.3.1 - Unreleased
 
   INCOMPATIBLE CHANGES

Modified: hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java?rev=806018&r1=806017&r2=806018&view=diff
==============================================================================
--- hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java
(original)
+++ hadoop/hive/branches/branch-0.4/ql/src/java/org/apache/hadoop/hive/ql/optimizer/ppr/PartitionPruner.java
Thu Aug 20 01:42:37 2009
@@ -199,9 +199,11 @@
     }
     // Return true in case one of the children is column expr.
     List<exprNodeDesc> children = desc.getChildren();
-    for (int i = 0; i < children.size(); i++) {
-      if (hasColumnExpr(children.get(i))) {
-        return true;
+    if (children != null) {
+      for (int i = 0; i < children.size(); i++) {
+        if (hasColumnExpr(children.get(i))) {
+          return true;
+        }
       }
     }
     // Return false otherwise

Added: hadoop/hive/branches/branch-0.4/ql/src/test/queries/clientnegative/input_part0_neg.q
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.4/ql/src/test/queries/clientnegative/input_part0_neg.q?rev=806018&view=auto
==============================================================================
--- hadoop/hive/branches/branch-0.4/ql/src/test/queries/clientnegative/input_part0_neg.q (added)
+++ hadoop/hive/branches/branch-0.4/ql/src/test/queries/clientnegative/input_part0_neg.q Thu
Aug 20 01:42:37 2009
@@ -0,0 +1,3 @@
+set hive.mapred.mode=strict;
+
+SELECT x.* FROM SRCPART x WHERE key = '2008-04-08';

Added: hadoop/hive/branches/branch-0.4/ql/src/test/results/clientnegative/input_part0_neg.q.out
URL: http://svn.apache.org/viewvc/hadoop/hive/branches/branch-0.4/ql/src/test/results/clientnegative/input_part0_neg.q.out?rev=806018&view=auto
==============================================================================
--- hadoop/hive/branches/branch-0.4/ql/src/test/results/clientnegative/input_part0_neg.q.out
(added)
+++ hadoop/hive/branches/branch-0.4/ql/src/test/results/clientnegative/input_part0_neg.q.out
Thu Aug 20 01:42:37 2009
@@ -0,0 +1 @@
+FAILED: Error in semantic analysis: No Partition Predicate Found for Alias "x" Table "srcpart"



Mime
View raw message