diff --git a/vortex-array/src/array/bool/mod.rs b/vortex-array/src/array/bool/mod.rs index 2899dbd324..7539ca279e 100644 --- a/vortex-array/src/array/bool/mod.rs +++ b/vortex-array/src/array/bool/mod.rs @@ -180,7 +180,8 @@ impl ArrayDisplay for BoolArray { let true_count = self.stats().get_or_compute_or(0usize, &Stat::TrueCount); let false_count = self.len() - true_count; f.property("n_true", true_count)?; - f.property("n_false", false_count) + f.property("n_false", false_count)?; + f.maybe_child("validity", self.validity()) } } diff --git a/vortex-array/src/array/primitive/mod.rs b/vortex-array/src/array/primitive/mod.rs index 63d6798a2a..533861d479 100644 --- a/vortex-array/src/array/primitive/mod.rs +++ b/vortex-array/src/array/primitive/mod.rs @@ -297,7 +297,8 @@ impl ArrayDisplay for PrimitiveArray { f.property("values", format!("{:?}{}", &self.buffer().typed_data::<$P>()[..min(10, self.len())], if self.len() > 10 { "..." } else { "" })) - }) + })?; + f.maybe_child("validity", self.validity()) } } diff --git a/vortex-array/src/array/varbin/mod.rs b/vortex-array/src/array/varbin/mod.rs index 0f7a24fccb..4a8d75f002 100644 --- a/vortex-array/src/array/varbin/mod.rs +++ b/vortex-array/src/array/varbin/mod.rs @@ -321,7 +321,8 @@ impl Encoding for VarBinEncoding { impl ArrayDisplay for VarBinArray { fn fmt(&self, f: &mut ArrayFormatter) -> std::fmt::Result { f.child("offsets", self.offsets())?; - f.child("bytes", self.bytes()) + f.child("bytes", self.bytes())?; + f.maybe_child("validity", self.validity()) } } diff --git a/vortex-array/src/array/varbinview/mod.rs b/vortex-array/src/array/varbinview/mod.rs index c731684249..40fab245ad 100644 --- a/vortex-array/src/array/varbinview/mod.rs +++ b/vortex-array/src/array/varbinview/mod.rs @@ -343,7 +343,7 @@ impl ArrayDisplay for VarBinViewArray { for (i, d) in self.data().iter().enumerate() { f.child(&format!("data_{}", i), d.as_ref())?; } - Ok(()) + f.maybe_child("validity", self.validity()) } }