-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Fix binary arithmetic for Nullable(IPv4) #51642
Conversation
This is an automated comment for commit 565204f with description of existing statuses. It's updated for the latest CI running
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests seem unrelated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually shouldn't be the same be done for tuple and number?
/// Special case when the function is multiply or divide, one of arguments is Tuple and another is Number.
if (auto function_builder = getFunctionForTupleAndNumberArithmetic(arguments[0].type, arguments[1].type, context))
{
return executeTupleNumberOperator(arguments, result_type, input_rows_count, function_builder);
}
As far as I see, the same error could happen there also in case we divide a tuple with nullable number. Did I misunderstand something?
I will try to address this in a dedicated PR. |
@antaljanosbenjamin as I see modulo doesn't work with tuple whatever divider is nullable or not... do we want it to work? it can be seen as inconsistency because division does work on tuples. And division by nullable doesn't work because tuple can't be nullable. |
Backport #51642 to 23.7: Fix binary arithmetic for Nullable(IPv4)
Backport #51642 to 23.6: Fix binary arithmetic for Nullable(IPv4)
Backport #51642 to 23.5: Fix binary arithmetic for Nullable(IPv4)
Backport #51642 to 23.3: Fix binary arithmetic for Nullable(IPv4)
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fixed binary arithmetic for Nullable(IPv4)
closes #51588