Rich-T-kid commented on code in PR #26159:
URL: https://github.com/apache/datafusion/pull/26159#discussion_r4238419832
##########
datafusion/common/src/hash_utils.rs:
##########
@@ -543,23 +555,17 @@ fn hash_dictionary_scatter<
if let Some(key) = key {
let idx = key.as_usize();
if !HAS_NULL_VALUES || dict_values.is_valid(idx) {
- if MULTI_COL {
- *hash = combine_hashes(dict_hashes[idx], *hash);
- } else {
- *hash = dict_hashes[idx];
- }
+ let dict_hash = unsafe { *dict_hashes.get_unchecked(idx) };
Review Comment:
should add a saftey comment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]