dongjoon-hyun opened a new pull request, #2271:
URL: https://github.com/apache/orc/pull/2271

   ### What changes were proposed in this pull request?
   
   This PR aims to support `Native Image` build for `orc-tools`
   
   ### Why are the changes needed?
   
   To minimize the binary size in terms of both `jar` and Ddocker images.
   
   ```
   $ ls -alh 
/opt/homebrew/Cellar/orc-tools/2.1.2/libexec/orc-tools-2.1.2-uber.jar
   -rw-r--r--  1 dongjoon  admin    66M May  3 15:40 
/opt/homebrew/Cellar/orc-tools/2.1.2/libexec/orc-tools-2.1.2-uber.jar
   ```
   
   ```
   $ ls -alh /Users/dongjoon/APACHE/orc-merge/java/tools/target/orc-tool
   -rwxr-xr-x@ 1 dongjoon  staff    56M Jun 16 13:07 
/Users/dongjoon/APACHE/orc-merge/java/tools/target/orc-tool
   ```
   
   ### How was this patch tested?
   
   Manually.
   
   **GraalVM Community Edition**
   ```
   $ java -version
   openjdk version "21.0.2" 2024-01-16
   OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 
21.0.2+13-jvmci-23.1-b30)
   OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 
21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)
   ```
   
   **Build `orc-tools` Native Image
   ```
   $ cd java
   $ mvn clean package --pl tools --am -DskipTests
   ```
   
   ### Was this patch authored or co-authored using generative AI tooling?
   
   No.


-- 
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