forked from apache/calcite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CALCITE-6005] POLYGON string representation is different on Apple si…
…licon Two tests in RelOptRulesTest produce different plans on Apple Silicon (arm64) than on AMD/Intel (x86_64) because the double values inside a POLYGON geospatial value differ in their least significant digits. Perhaps arm64 implements floating point differently. In this change we solve the problem by changing replacing the floating point values with their x86_64 values. After this change the tests pass on both CPU architectures. If the problem spreads beyond a couple of tests we can adopt a more robust solution.
- Loading branch information
1 parent
e1991e0
commit cc73aba
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters