(arr: ArrayRef, state: &mut H)
| 1029 | } |
| 1030 | |
| 1031 | fn 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 |
no test coverage detected
searching dependent graphs…