MCPcopy Create free account
hub / github.com/apache/datafusion / hash_null

Function hash_null

datafusion/common/src/hash_utils.rs:144–155  ·  view source on GitHub ↗
(random_state: &RandomState, hashes_buffer: &'_ mut [u64], mul_col: bool)

Source from the content-addressed store, hash-verified

142
143#[cfg(not(feature = "force_hash_collisions"))]
144fn hash_null(random_state: &RandomState, hashes_buffer: &'_ mut [u64], mul_col: bool) {
145 if mul_col {
146 hashes_buffer.iter_mut().for_each(|hash| {
147 // stable hash for null value
148 *hash = combine_hashes(random_state.hash_one(1), *hash);
149 })
150 } else {
151 hashes_buffer.iter_mut().for_each(|hash| {
152 *hash = random_state.hash_one(1);
153 })
154 }
155}
156
157pub trait HashValue {
158 fn hash_one(&self, state: &RandomState) -> u64;

Callers

nothing calls this directly

Calls 2

combine_hashesFunction · 0.85
hash_oneMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…