Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
ghx-label-4
Description
We create a minimal-impala-hive-exec.jar based on Hive's hive-exec.jar:
https://github.com/apache/impala/blob/master/java/shaded-deps/hive-exec/pom.xml#L34
This excludes lots of class files, including org/apache/hive/common/package-info.class that is used by HiveVersionAnnotation and HiveVersionInfo classes.
Because of this HiveVersionInfo returns "Unknown" version resulting in failing Iceberg operations, e.g.:
https://github.com/apache/iceberg/blob/2535c3a8b18910a926df45d267271aecd83317b3/hive-metastore/src/main/java/org/apache/iceberg/hive/MetastoreLock.java#L364