-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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](hash)update_hashes_with_value method should handle if input value is null #13332
Conversation
hashes[i] = HashUtil::xxHash64WithSeed(reinterpret_cast<const char*>(&data[i]), | ||
sizeof(T), hashes[i]); | ||
} | ||
else { |
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.
here seems do not need compute again ? just do nothing is ok ?
72790b3
to
f90de3c
Compare
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.
LGTM
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
for (int i = 0; i < s; i++) { | ||
hashes[i] = HashUtil::xxHash64WithSeed(reinterpret_cast<const char*>(&data[i]), sizeof(T), | ||
hashes[i]); | ||
if (null_data) { |
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.
Would it be better to express the logic as the following to save LOC?
for (int i = 0; i < s; i++) {
if (null_data != nullptr && null_data[i] != 0) continue;
hashes[i] = HashUtil::xxHash64WithSeed(reinterpret_cast<const char*>(&data[i]), sizeof(T),
hashes[i]);
}
…apache#13548 apache#13591) (apache#931) * update_hashes_with_value method should handle if input value is null apache#13332, fix tpch q75 https://github.com/apache/doris/pull/13332/files commit 8301839 Author: starocean999 <40539150+starocean999@users.noreply.github.com> Date: Thu Oct 13 14:36:01 2022 +0800 * [Bug](sort) Fix bug in string sorter apache#13548, fix user case https://github.com/apache/doris/pull/13548/files commit a7c221d Author: Gabriel <gabrielleebuaa@gmail.com> Date: Sat Oct 22 21:26:23 2022 +0800 * [Bug](decimal) Fix incorrect result for decimal multiply apache#13591, fix user case https://github.com/apache/doris/pull/13591/files commit 7fe7c01 Author: Gabriel <gabrielleebuaa@gmail.com> Date: Tue Oct 25 12:08:49 2022 +0800
Proposed changes
Issue Number: close #xxx
Problem summary
Describe your changes.
Checklist(Required)
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...