Skip to content

Commit

Permalink
HIVE-28211: Restore hive-exec-core jar (#5209). (Simhadri Govindappa,…
Browse files Browse the repository at this point in the history
… reviewed by Ayush Saxena, Zhihua Deng, Cheng Pan)
  • Loading branch information
simhadri-g committed May 3, 2024
1 parent e197890 commit 978194b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions ql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,28 @@
<goal>test-jar</goal>
</goals>
</execution>
<execution>
<!-- Restoring Hive exec core jar: HIVE-26220. The core jar is being used by Spark, oozie and trino
projects as a result we will need to restore this to prevent downstream projects from breaking.
This 'execution' will produce a hive-exec-$version-core.jar which has
all classes from ql module, i.e. the same contents as hive-exec-$version.jar would
have had if there was shade plugin below. The way shade was configured since 0.13, is
to override the default jar for ql module with the saded one but keep the same name.
In other words, ql modules producesd a single uber jar under the module's coordinates,
i.e. w/o a classifier. We also need a slim jar that only has classes from ql. This
jar will now be with a 'core' classifier to ensure that prior behavior is preserved.
It would have been better to have a slim jar called hive-exec-$version.jar and a fat
jar called hive-exec-$version-shaded.jar but doing this now will cause backwards compat.
issues-->
<id>core-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<classifier>core</classifier>
</configuration>
</execution>
<execution>
<id>fallbackauthorizer-jar</id>
<phase>package</phase>
Expand Down

0 comments on commit 978194b

Please sign in to comment.