Trino: Big numbers crash all numeric Expectations -> not an integer #7814 #7815
Unanswered
JustinGuese
asked this question in
Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
#7814
Describe the bug
When using high enough numbers (99999999999999999999999999), trino does not recognize it as number anymore and every comparison Expectation fails.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Still works
Environment (please complete the following information):
Additional context
Solution proposal: In the part where the Trino max is calculated, check if one number is bigger than 999999999999999999.
This is the last number that works in Trino, after that the error occurs.
If the number is bigger, divide both numbers by e.g. 10000000000000.
The logic condition should still remain the same
Beta Was this translation helpful? Give feedback.
All reactions