diff --git a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseLazyObjectFactory.java b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseLazyObjectFactory.java index 841e8ba229..081aa9eb50 100644 --- a/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseLazyObjectFactory.java +++ b/hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseLazyObjectFactory.java @@ -24,6 +24,7 @@ import java.util.List; import java.util.Properties; +import org.apache.commons.lang3.StringUtils; import org.apache.hadoop.hive.hbase.struct.HBaseValueFactory; import org.apache.hadoop.hive.serde2.SerDeException; import org.apache.hadoop.hive.serde2.lazy.LazySerDeParameters; @@ -72,7 +73,7 @@ public static ObjectInspector createLazyHBaseStructInspector(HBaseSerDeParameter .createValueObjectInspector(columnTypes.get(i))); } } - List structFieldComments = tbl.getProperty("columns.comments") == null ? + List structFieldComments = StringUtils.isEmpty(tbl.getProperty("columns.comments")) ? new ArrayList(Collections.nCopies(columnTypes.size(), "")) : Arrays.asList(tbl.getProperty("columns.comments").split("\0", columnTypes.size()));