diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java index 5784233cc2ff..ca5bfe9dffc4 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java @@ -806,7 +806,7 @@ public final class FunctionRegistry { (Class) Class.forName("org.apache.iceberg.mr.hive.udf.GenericUDFIcebergHour")); system.registerGenericUDF("iceberg_zorder", (Class) Class.forName("org.apache.iceberg.mr.hive.udf.GenericUDFIcebergZorder")); - } catch (ClassNotFoundException e) { + } catch (ClassNotFoundException | NoClassDefFoundError e) { LOG.warn("iceberg_bucket function could not be registered"); } }