hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jd...@apache.org
Subject hive git commit: HIVE-10672: Analyze command on a table using row format serde JsonSerDe fails with NoClassDefFoundError (Jason Dere, reviewed by Sushanth Sowmyan)
Date Tue, 12 May 2015 20:57:20 GMT
Repository: hive
Updated Branches:
  refs/heads/master e4d4e00b5 -> 1e9e6fe13


HIVE-10672: Analyze command on a table using row format serde JsonSerDe fails with NoClassDefFoundError
(Jason Dere, reviewed by Sushanth Sowmyan)


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

Branch: refs/heads/master
Commit: 1e9e6fe135ae2ad0614a6e9833a77f924156a7e0
Parents: e4d4e00
Author: Jason Dere <jdere@hortonworks.com>
Authored: Tue May 12 13:56:24 2015 -0700
Committer: Jason Dere <jdere@hortonworks.com>
Committed: Tue May 12 13:56:24 2015 -0700

----------------------------------------------------------------------
 .../org/apache/hive/hcatalog/data/schema/HCatFieldSchema.java  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/1e9e6fe1/hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/schema/HCatFieldSchema.java
----------------------------------------------------------------------
diff --git a/hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/schema/HCatFieldSchema.java
b/hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/schema/HCatFieldSchema.java
index cd0f177..345806b 100644
--- a/hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/schema/HCatFieldSchema.java
+++ b/hcatalog/core/src/main/java/org/apache/hive/hcatalog/data/schema/HCatFieldSchema.java
@@ -218,11 +218,11 @@ similarly for mapKeyType/mapKeyTypeInfo */
   public HCatFieldSchema(String fieldName, PrimitiveTypeInfo typeInfo, String comment)
           throws HCatException {
     this.fieldName = fieldName;
-    //HCatUtil.assertNotNull(fieldName, "fieldName cannot be null");//seems sometimes it
can be 
-    // null, for ARRAY types in particular (which may be a complex type)
     this.category = Category.PRIMITIVE;
     this.typeInfo = typeInfo;
-    HCatUtil.assertNotNull(typeInfo, "typeInfo cannot be null; fieldName=" + fieldName, null);
+    if (typeInfo == null) {
+      throw new IllegalArgumentException("typeInfo cannot be null; fieldName=" + fieldName);
+    }
     type = Type.getPrimitiveHType(typeInfo);
     this.comment = comment;
   }


Mime
View raw message