diff --git a/arrow-array/src/array/mod.rs b/arrow-array/src/array/mod.rs index 2581e5ce4d6c..f05916fd2428 100644 --- a/arrow-array/src/array/mod.rs +++ b/arrow-array/src/array/mod.rs @@ -620,10 +620,11 @@ impl<'a> StringArrayType<'a> for &'a StringViewArray { } } -/// A trait for Arrow String Arrays, currently three types are supported: +/// A trait for Arrow Binary Arrays, currently four types are supported: /// - `BinaryArray` /// - `LargeBinaryArray` /// - `BinaryViewArray` +/// - `FixedSizeBinaryArray` /// /// This trait helps to abstract over the different types of binary arrays /// so that we don't need to duplicate the implementation for each type. @@ -642,6 +643,11 @@ impl<'a> BinaryArrayType<'a> for &'a BinaryViewArray { BinaryViewArray::iter(self) } } +impl<'a> BinaryArrayType<'a> for &'a FixedSizeBinaryArray { + fn iter(&self) -> ArrayIter { + FixedSizeBinaryArray::iter(self) + } +} impl PartialEq for dyn Array + '_ { fn eq(&self, other: &Self) -> bool {