Skip to content

JMESPath functions floor and ceil return integer#689

Merged
danielaparker merged 1 commit intodanielaparker:masterfrom
BartelNieuwenhuyse:bugfix/jmespath_floor-and-ceil-return-integer
Mar 22, 2026
Merged

JMESPath functions floor and ceil return integer#689
danielaparker merged 1 commit intodanielaparker:masterfrom
BartelNieuwenhuyse:bugfix/jmespath_floor-and-ceil-return-integer

Conversation

@BartelNieuwenhuyse
Copy link
Copy Markdown

I added some edge case tests and noticed that my code in pull request 688 did cause incorrect results due to overflow:

ceil(`9223372036854775807`) returned -9223372036854775808 instead of +9223372036854775807

So I coded different bounds to check the cast from double to int64.

Sorry for the inconvenience.

@danielaparker danielaparker merged commit 1e203df into danielaparker:master Mar 22, 2026
37 checks passed
@danielaparker
Copy link
Copy Markdown
Owner

Thanks!

@BartelNieuwenhuyse BartelNieuwenhuyse deleted the bugfix/jmespath_floor-and-ceil-return-integer branch March 27, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants