World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#1547] fix(hive): Fix NullPointerException of HiveCatalogOperations (#1548)
qqqttt123ae5e5faba9f9
diff --git a/catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java b/catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.javaindex 16c031b67b..5b60f8d8aa 100644--- a/catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java+++ b/catalogs/catalog-hive/src/main/java/com/datastrato/gravitino/catalog/hive/HiveCatalogOperations.java@@ -703,7 +703,8 @@ public class HiveCatalogOperations implements CatalogOperations, SupportsSchemasreturn HiveTable.fromHiveTable(alteredHiveTable);} catch (TException | InterruptedException e) {- if (e.getMessage().contains("types incompatible with the existing columns")) {+ if (e.getMessage() != null+ && e.getMessage().contains("types incompatible with the existing columns")) {throw new IllegalArgumentException("Failed to alter Hive table ["+ tableIdent.name()