-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Enhancement] use crc hash for exchange op when hash partition #63726
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: before-Sunrise <[email protected]>
Signed-off-by: before-Sunrise <[email protected]>
Signed-off-by: before-Sunrise <[email protected]>
|
alvin-celerdata
left a comment
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.
I put a request changes first before the concerns are resolved.
| _hash_values.assign(num_rows, HashUtil::FNV_SEED); | ||
| for (const ColumnPtr& column : _partitions_columns) { | ||
| column->fnv_hash(&_hash_values[0], 0, num_rows); | ||
| // Check if we should use crc32_hash instead of fnv_hash based on session variable |
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.
What hash function does starrocks use for aggregation.
The hash functions of aggregation and shuffle should be different, otherwise, it will cause a lot of hash conflicts in aggregation or hash-join. It will cause a much bigger hash table than it should be.
So when you change it, you must make sure that they are using two different functions.
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[BE Incremental Coverage Report]❌ fail : 0 / 5 (00.00%) file detail
|



Why I'm doing:
fnv hash is much slower then crc hash.
What I'm doing:
use crc hash when sv is set. So upgrade is safe
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: