diff --git a/arrow-array/src/array/list_view_array.rs b/arrow-array/src/array/list_view_array.rs index 64306e91827c..ba5fc139e1bb 100644 --- a/arrow-array/src/array/list_view_array.rs +++ b/arrow-array/src/array/list_view_array.rs @@ -231,6 +231,8 @@ impl GenericListViewArray { } /// Returns ith value of this list view array. + /// # Panics + /// Panics if the index is out of bounds pub fn value(&self, i: usize) -> ArrayRef { let offset = self.value_offsets()[i].as_usize(); let length = self.value_sizes()[i].as_usize();