hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1230091 - /hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
Date Wed, 11 Jan 2012 15:27:31 GMT
Author: hashutosh
Date: Wed Jan 11 15:27:30 2012
New Revision: 1230091

URL: http://svn.apache.org/viewvc?rev=1230091&view=rev
Log:
HIVE-2705: SemanticAnalyzer twice swallows an exception it shouldn't (jghoman via hashutosh)

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

Modified: hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java?rev=1230091&r1=1230090&r2=1230091&view=diff
==============================================================================
--- hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java (original)
+++ hive/trunk/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzer.java Wed Jan 11
15:27:30 2012
@@ -4087,7 +4087,7 @@ public class SemanticAnalyzer extends Ba
                     partSpec);
             outputs.add(new WriteEntity(p, false));
           } catch (HiveException e) {
-            throw new SemanticException(e.getMessage());
+            throw new SemanticException(e.getMessage(), e);
           }
         }
       }
@@ -4277,7 +4277,7 @@ public class SemanticAnalyzer extends Ba
             .getFieldObjectInspector()), "", false));
       }
     } catch (Exception e) {
-      throw new SemanticException(e.getMessage());
+      throw new SemanticException(e.getMessage(), e);
     }
 
     RowSchema fsRS = new RowSchema(vecCol);



Mime
View raw message