diff --git a/src/array/utf8/mutable.rs b/src/array/utf8/mutable.rs index 12a81d5c34a..52150942370 100644 --- a/src/array/utf8/mutable.rs +++ b/src/array/utf8/mutable.rs @@ -241,6 +241,11 @@ impl MutableUtf8Array { validity.shrink_to_fit() } } + + /// Extract the low-end APIs from the [`MutableUtf8Array`]. + pub fn into_data(self) -> (DataType, Vec, Vec, Option) { + (self.data_type, self.offsets, self.values, self.validity) + } } impl MutableUtf8Array {