hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amareshw...@apache.org
Subject svn commit: r1084483 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java
Date Wed, 23 Mar 2011 06:04:14 GMT
Author: amareshwari
Date: Wed Mar 23 06:04:14 2011
New Revision: 1084483

URL: http://svn.apache.org/viewvc?rev=1084483&view=rev
Log:
HIVE-2031. Corrects exception message for load in partitioned table. Contributed by Chinna
Rao Lalam

Modified:
    hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java?rev=1084483&r1=1084482&r2=1084483&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java Wed Mar
23 06:04:14 2011
@@ -610,7 +610,7 @@ public abstract class BaseSemanticAnalyz
         throws SemanticException {
 
       assert (ast.getToken().getType() == HiveParser.TOK_TAB
-          || ast.getToken().getType() == HiveParser.TOK_TABLE_PARTITION 
+          || ast.getToken().getType() == HiveParser.TOK_TABLE_PARTITION
           || ast.getToken().getType() == HiveParser.TOK_TABTYPE);
       int childIndex = 0;
       numDynParts = 0;
@@ -698,7 +698,7 @@ public abstract class BaseSemanticAnalyz
             }
           } catch (HiveException e) {
             throw new SemanticException(
-                ErrorMsg.INVALID_PARTITION.getMsg(ast.getChild(childIndex)));
+                ErrorMsg.INVALID_PARTITION.getMsg(ast.getChild(childIndex)), e);
           }
           specType = SpecType.STATIC_PARTITION;
         }



Mime
View raw message