Skip to content

Commit

Permalink
always hash array type
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Dec 29, 2024
1 parent 11c7602 commit 9592797
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,13 @@ impl<T: ArrayValue> Hash for Array<T> {
if let Some(keys) = self.map_keys() {
keys.hash(hasher);
}
T::TYPE_ID.hash(hasher);
if let Some(scalar) = self.as_scalar() {
if let Some(value) = scalar.nested_value() {
value.hash(hasher);
return;
}
}
T::TYPE_ID.hash(hasher);
self.shape.hash(hasher);
self.data.iter().for_each(|x| x.array_hash(hasher));
}
Expand Down

0 comments on commit 9592797

Please sign in to comment.