Skip to content

Commit 629388f

Browse files
Check metadata as well
1 parent 666c2b1 commit 629388f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

arrow-schema/src/fields.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -331,14 +331,7 @@ impl std::fmt::Debug for UnionFields {
331331

332332
impl PartialEq for UnionFields {
333333
fn eq(&self, other: &Self) -> bool {
334-
self.len() == other.len()
335-
&& self.iter().all(|a| {
336-
other.iter().any(|b| {
337-
a.0 == b.0
338-
&& a.1.is_nullable() == b.1.is_nullable()
339-
&& a.1.data_type().equals_datatype(b.1.data_type())
340-
})
341-
})
334+
self.len() == other.len() && self.iter().all(|a| other.iter().any(|b| a == b))
342335
}
343336
}
344337

0 commit comments

Comments
 (0)