yuqi1129 opened a new pull request, #11477:
URL: https://github.com/apache/gravitino/pull/11477

   ### What changes were proposed in this pull request?
   
   `lance-common/build.gradle.kts` had `implementation(libs.lance)` which 
pulled `lance-core-6.0.0.jar` (a fat jar bundling three-platform native JNI 
libraries) into every downstream module's runtime classpath, including 
`lance-rest-server`.
   
   This PR:
   - Removes `implementation(libs.lance)` from `lance-common`
   - Adds `implementation(libs.arrow.vector)` (the only Arrow dependency 
actually used by `lance-common`'s source code — `ArrowUtils` and 
`LanceDataTypeConverter`)
   - Registers `arrow-vector` in the version catalog at version `18.3.0` (the 
version previously provided transitively by `lance-core`)
   
   Impact on `lance-rest-server` runtime classpath:
   
   | Artifact | Before | After |
   |----------|--------|-------|
   | `lance-core-6.0.0.jar` (fat jar, 3-platform native libs) | 164 MB | 
removed |
   | `arrow-dataset-18.3.0.jar` (transitive of lance-core) | 74 MB | removed |
   | `arrow-vector-18.3.0.jar` | — | +2.1 MB |
   | **Net reduction** | | **≈ −236 MB** |
   
   ### Why are the changes needed?
   
   `lance-core-6.0.0.jar` is a fat jar that embeds three platform native 
libraries (`linux-x86-64`, `linux-aarch64`, `darwin-aarch64`), each ~150 MB 
unstripped. The `lance-rest-server` is a pure REST layer (Jersey + Gravitino 
backend); it never calls any `org.lance.*` JNI classes directly. The only 
reason `lance-core` was on its classpath was the unnecessary 
`implementation(libs.lance)` in `lance-common`.
   
   Fix: #11468
   
   ### Does this PR introduce _any_ user-facing change?
   
   No API changes. The `gravitino-lance-rest-server` distribution package will 
be significantly smaller (~236 MB reduction in the lib directory).
   
   ### How was this patch tested?
   
   - `./gradlew :lance:lance-common:compileJava 
:lance:lance-rest-server:compileJava` — compiles clean
   - `./gradlew :lance:lance-common:test :lance:lance-rest-server:test 
-PskipITs` — unit tests pass
   - Verified `lance-core` and `arrow-dataset` are no longer in 
`:lance:lance-rest-server` runtimeClasspath; `arrow-vector` is present


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to