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

Add type promotion for modulo of division of negative number #20067

Merged
merged 2 commits into from
Feb 5, 2021

Conversation

alexey-milovidov
Copy link
Member

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix the case when calculating modulo of division of negative number by small divisor, the resulting data type was not large enough to accomodate the negative result. This closes #20052.

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Feb 4, 2021
@alexey-milovidov alexey-milovidov added the force tests Force test ignoring fast test output. label Feb 4, 2021
@alexey-milovidov alexey-milovidov self-assigned this Feb 5, 2021
@alexey-milovidov alexey-milovidov merged commit 34151ee into master Feb 5, 2021
@alexey-milovidov alexey-milovidov deleted the mod-negative-type-promotion branch February 5, 2021 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
force tests Force test ignoring fast test output. pr-bugfix Pull request with bugfix, not backported by default pr-no-backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect modulo(a, b), a % b behavior for Int fields
2 participants