hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khorg...@apache.org
Subject svn commit: r1628580 - /hive/trunk/hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java
Date Wed, 01 Oct 2014 00:14:04 GMT
Author: khorgath
Date: Wed Oct  1 00:14:04 2014
New Revision: 1628580

URL: http://svn.apache.org/r1628580
Log:
HIVE-7891 : Table-creation fails through HCatClient for Oracle-based metastore (Mithun Radhakrishnan
via Sushanth Sowmyan)

Modified:
    hive/trunk/hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java

Modified: hive/trunk/hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java
URL: http://svn.apache.org/viewvc/hive/trunk/hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java?rev=1628580&r1=1628579&r2=1628580&view=diff
==============================================================================
--- hive/trunk/hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java
(original)
+++ hive/trunk/hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/HCatTable.java
Wed Oct  1 00:14:04 2014
@@ -168,7 +168,7 @@ public class HCatTable {
       newTable.setTableType(TableType.MANAGED_TABLE.toString());
     }
 
-    if (this.comment != null) {
+    if (StringUtils.isNotBlank(this.comment)) {
       newTable.putToParameters("comment", comment);
     }
 



Mime
View raw message