diff --git a/src/array/list/mutable.rs b/src/array/list/mutable.rs index fab320655c0..93d0103ac51 100644 --- a/src/array/list/mutable.rs +++ b/src/array/list/mutable.rs @@ -136,7 +136,9 @@ impl MutableListArray { } #[inline] - fn try_push_valid(&mut self) -> Result<()> { + /// Needs to be called when a valid value was extended to this array. + /// This is a relatively low level function, prefer `try_push` when you can. + pub fn try_push_valid(&mut self) -> Result<()> { let size = self.values.len(); let size = O::from_usize(size).ok_or(ArrowError::KeyOverflowError)?; // todo: make this error assert!(size >= *self.offsets.last().unwrap());