GoogleCloudPlatform / zetasql-toolkit

The ZetaSQL Toolkit is a library that helps users use ZetaSQL Java API to perform SQL analysis for multiple query engines, including BigQuery and Cloud Spanner.
Apache License 2.0
35 stars 8 forks source link

ZetaSQL supports Mac M1 and M2 chips #26

Closed emincanoguz11 closed 8 months ago

emincanoguz11 commented 8 months ago

Hi there,

I have a Mac M1 Pro but I get an error in ZetaSQL because of unsupported OS. Can we solve this problem? Because we want to debug and add new features but in this case we are struggling.

Best regards, Emin

ppaglilla commented 8 months ago

Hi Emin!

I think ZetaSQL works on arm Macs if you run an x86_64 JVM through Rosetta. Native arm builds are unfortunately not supported by ZetaSQL, at least at the time of writing.

I recommend installing Rosetta and an x86 JDK, then giving it a try. I don't have an arm Mac to test it myself and confirm it however.

Another option would be running on an x86 Ubuntu container using Docker, I've heard those work under Rosetta as well.

emincanoguz11 commented 8 months ago

Hi Pablo,

Thanks for the advice. I want to debug code and I don't want to use Docker for that reason. This is my company PC and I don't install Rosetta for this reason.

Unfortunately this is the main problem with Zeta.

Anyway, maybe I will buy a VM for this reason and check the code.

Best regards, Emin