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

Function hash_nested_array

datafusion/common/src/scalar/mod.rs:1031–1039  ·  view source on GitHub ↗
(arr: ArrayRef, state: &mut H)

Source from the content-addressed store, hash-verified

1029}
1030
1031fn hash_nested_array<H: Hasher>(arr: ArrayRef, state: &mut H) {
1032 let len = arr.len();
1033 let hashes_buffer = &mut vec![0; len];
1034 let random_state = crate::hash_utils::RandomState::with_seed(0);
1035 let hashes = create_hashes(&[arr], &random_state, hashes_buffer)
1036 .expect("hash_nested_array: failed to create row hashes");
1037 // Hash back to std::hash::Hasher
1038 hashes.hash(state);
1039}
1040
1041/// Return a reference to the values array and the index into it for a
1042/// dictionary array

Callers 1

hashMethod · 0.85

Calls 3

create_hashesFunction · 0.85
lenMethod · 0.45
hashMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…