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

Function create_hashes_fixed_size_binary

datafusion/common/src/hash_utils.rs:1222–1234  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1220
1221 #[test]
1222 fn create_hashes_fixed_size_binary() -> Result<()> {
1223 let input_arg = vec![vec![1, 2], vec![5, 6], vec![5, 6]];
1224 let fixed_size_binary_array: ArrayRef =
1225 Arc::new(FixedSizeBinaryArray::try_from_iter(input_arg.into_iter()).unwrap());
1226
1227 let random_state = RandomState::with_seed(0);
1228 let hashes_buff = &mut vec![0; fixed_size_binary_array.len()];
1229 let hashes =
1230 create_hashes(&[fixed_size_binary_array], &random_state, hashes_buff)?;
1231 assert_eq!(hashes.len(), 3,);
1232
1233 Ok(())
1234 }
1235
1236 macro_rules! create_hash_string {
1237 ($NAME:ident, $ARRAY:ty) => {

Callers

nothing calls this directly

Calls 3

newFunction · 0.85
create_hashesFunction · 0.85
into_iterMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…