Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
max() and min() get weird with large integer values #3130
On OSX with influx version 0.9 built from source
Playing around with large integer values, I got some weird results:
Adding largest signed 64-bit integer
Gradually decreasing the number:
Til things get even weirder:
The returned min is always off by a little.
I've identified why and where this bug occurs, but I don't have a fix since I'm not familiar enough with the code base. I've attached sample code to simulate the behavior.
This is the output:
This seems to be fixed in the new query engine and TSM. I'm not sure exactly where the fix came from, but this works: