-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SUM(bigint) produces strange results on M1 mac in Docker #99
SUM(bigint) produces strange results on M1 mac in Docker #99
Comments
Hi @bcipriano, thanks for the report. Actually, I'm quite surprised that it works at all. Because there is a similar issue, where the process crashes immediately at the beginning when the database is being initialized, see #95 As I wrote in the linked issue, maybe the problem is caused by using an outdated version of Ubuntu during the build. So you can try to upgrade it - https://github.com/zonkyio/embedded-postgres-binaries/blob/master/build.gradle#L590 You can also try to compare the build scripts between this project and the |
Thanks, I'll check these out when I can. FWIW, the base image I'm using is |
Made some progress here by playing around with the Ubuntu version used for the build.
I sent zonkyio/embedded-postgres-binaries#64 with my 18.04 changes. My branch list has my changes for the other Ubuntu versions in case that's helpful. |
@bcipriano Thank you very much for your pull request. All tests passed, everything seems to be working fine. New versions of the binaries have been released, so you can try them out. Great job! |
AcademySoftwareFoundation/OpenCue#1199 has a full description of the issue.
Over on the OpenCue project we use embedded-postgres for unit tests.
Basically we are seeing strange results from
SUM(bigint)
on arm64+Docker where the result is wildly incorrect.postgres
Docker image.SUM(CAST(bigint as numeric))
fixes the issue.Our build.gradle.
Any ideas here?
The text was updated successfully, but these errors were encountered: