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 Mon, 18 May 2015 18:01:00 GMT
Repository: hive
Updated Branches:
  refs/heads/branch-1.2 b1ad20f94 -> 275e0c478


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/275e0c47
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/275e0c47
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/275e0c47

Branch: refs/heads/branch-1.2
Commit: 275e0c478adc5e76e9c96ad18095b7756921de29
Parents: b1ad20f
Author: Jason Dere <jdere@hortonworks.com>
Authored: Tue May 12 13:56:24 2015 -0700
Committer: Jason Dere <jdere@hortonworks.com>
Committed: Mon May 18 10:56:43 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/275e0c47/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