Skip to content
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

Use Math.clamp instead of min/max #20358

Merged
merged 1 commit into from
Jan 12, 2024
Merged

Use Math.clamp instead of min/max #20358

merged 1 commit into from
Jan 12, 2024

Conversation

wendigo
Copy link
Contributor

@wendigo wendigo commented Jan 12, 2024

Math.clamp(value, minValue, maxValue) is easier to reason about than Math.min(Math.max(value, minValue), maxValue)

No release notes needed

@cla-bot cla-bot bot added the cla-signed label Jan 12, 2024
@wendigo wendigo requested review from findepi and losipiuk January 12, 2024 12:12
@github-actions github-actions bot added tests:hive iceberg Iceberg connector delta-lake Delta Lake connector hive Hive connector labels Jan 12, 2024
Math.clamp(value, minValue, maxValue) is easier to reason about than Math.min(Math.max(value, minValue), maxValue)
@wendigo wendigo force-pushed the serafin/jdk21-clamp branch from 4be2f22 to f34c8b4 Compare January 12, 2024 13:17
@wendigo wendigo merged commit dfa4eb8 into master Jan 12, 2024
97 of 98 checks passed
@wendigo wendigo deleted the serafin/jdk21-clamp branch January 12, 2024 19:07
@github-actions github-actions bot added this to the 437 milestone Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector hive Hive connector iceberg Iceberg connector
Development

Successfully merging this pull request may close these issues.

3 participants