datafusion-contrib / datafusion-java

Java binding to Apache DataFusion
Apache License 2.0
70 stars 13 forks source link

Feature request: Add support for macOS / AArch64 #137

Open gunnarmorling opened 6 months ago

gunnarmorling commented 6 months ago

Hi, are there plans for adding support for macOS / AArch64 (i.e. M1 Macs) to this library? I am getting this error below which I suppose is the case as the native library only is built for macOS/x64:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/2h/dglkh0gd07jfc6bqgx5g94nm0000gn/T/datafusion_jni4772271915185568606.dylib
caicancai commented 2 weeks ago

Hi, are there plans for adding support for macOS / AArch64 (i.e. M1 Macs) to this library? I am getting this error below which I suppose is the case as the native library only is built for macOS/x64:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/2h/dglkh0gd07jfc6bqgx5g94nm0000gn/T/datafusion_jni4772271915185568606.dylib

I have no problem with the M3 Mac

image
jimexist commented 2 weeks ago

Hi, are there plans for adding support for macOS / AArch64 (i.e. M1 Macs) to this library? I am getting this error below which I suppose is the case as the native library only is built for macOS/x64:

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /var/folders/2h/dglkh0gd07jfc6bqgx5g94nm0000gn/T/datafusion_jni4772271915185568606.dylib

I have no problem with the M3 Mac image

i think the issue was not about local dev. it's about the packaged version.

we use GitHub runner to package and as of the time of last publish the runner had no M1 version.

GitHub seemed to have added M series support but not sure if's available for free for open source - see https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories maybe worth trying it out