rok commented on code in PR #14472:
URL: https://github.com/apache/arrow/pull/14472#discussion_r1014728293
##########
java/adapter/orc/src/main/java/org/apache/arrow/adapter/orc/OrcJniUtils.java:
##########
@@ -37,18 +38,34 @@ static void loadOrcAdapterLibraryFromJar()
throws IOException, IllegalAccessException {
synchronized (OrcJniUtils.class) {
if (!isLoaded) {
- final String libraryToLoad = System.mapLibraryName(LIBRARY_NAME);
- final File libraryFile = moveFileFromJarToTemp(
- System.getProperty("java.io.tmpdir"), libraryToLoad);
+ final String libraryToLoad =
+ getNormalizedArch() + File.separator +
System.mapLibraryName(LIBRARY_NAME);
+ final File libraryFile =
+ moveFileFromJarToTemp(System.getProperty("java.io.tmpdir"),
libraryToLoad, LIBRARY_NAME);
System.load(libraryFile.getAbsolutePath());
isLoaded = true;
}
}
}
- private static File moveFileFromJarToTemp(final String tmpDir, String
libraryToLoad)
+ private static String getNormalizedArch(void) {
Review Comment:
```suggestion
private static String getNormalizedArch() {
```
--
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]