Skip to content

Partially shade iceberg-hive-metastore for HiveSchemaUtils usage#223

Merged
teamurko merged 5 commits intolinkedin:openhouse-1.2.0from
jiang95-dev:lejiang/hive
Dec 15, 2025
Merged

Partially shade iceberg-hive-metastore for HiveSchemaUtils usage#223
teamurko merged 5 commits intolinkedin:openhouse-1.2.0from
jiang95-dev:lejiang/hive

Conversation

@jiang95-dev
Copy link
Contributor

@jiang95-dev jiang95-dev commented Dec 12, 2025

Changes

There are some usages of HiveSchemaUtils in the hive to iceberg migration, however the iceberg-hive-metastore module did not properly include the dependencies in RuntimeClasspath. This PR adds shading to the module and relocate hive related classes so it won't break the existing classes in the hive environment. Also since HiveSchemaUtils is the only use case, we should only partially shade the jars so that we don't need to deal with massive exclusions and relocations.

Tests

Integration tests
Tested the snapshot shaded jar in li-openhouse-java-runtime with HiveSchemaUtils tests and worked.

Shadow jar check
The necessary classes exist and being relocated. The jar size is 18mb compared to 36mb for full shading.
Screenshot 2025-12-12 at 1 59 41 AM

@github-actions github-actions bot added the BUILD label Dec 12, 2025
Copy link
Collaborator

@teamurko teamurko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if possible, we can have current module unchanges and produce shaded version in addition?

@teamurko teamurko self-requested a review December 15, 2025 16:56
@teamurko teamurko merged commit c265208 into linkedin:openhouse-1.2.0 Dec 15, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants