World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#256] fix: Hive read/write Graviton created table error (#260)
mchades5c80ca91a290
diff --git a/catalog-hive/src/main/java/com/datastrato/graviton/catalog/hive/HiveTable.java b/catalog-hive/src/main/java/com/datastrato/graviton/catalog/hive/HiveTable.javaindex e8ffa8c485..22e5797f2e 100644--- a/catalog-hive/src/main/java/com/datastrato/graviton/catalog/hive/HiveTable.java+++ b/catalog-hive/src/main/java/com/datastrato/graviton/catalog/hive/HiveTable.java@@ -97,12 +97,18 @@ public class HiveTable extends BaseTable {// `location` must not be null, otherwise it will result in an NPE when calling HMS `alterTable`// interfacesd.setLocation(location);+ // TODO(minghuang): Remove hard coding below after supporting the specified Hive table+ // properties+ sd.setInputFormat("org.apache.hadoop.mapred.TextInputFormat");+ sd.setOutputFormat("org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat");return sd;}private SerDeInfo buildSerDeInfo() {// TODO(minghuang): Build SerDeInfo object based on user specifications.- return new SerDeInfo();+ SerDeInfo serDeInfo = new SerDeInfo();+ serDeInfo.setSerializationLib("org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe");+ return serDeInfo;}/**