Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Made try_push_valid public again (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 authored Oct 9, 2021
1 parent 8a7f1d7 commit 0987215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/array/list/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ impl<O: Offset, M: MutableArray> MutableListArray<O, M> {
}

#[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());
Expand Down

0 comments on commit 0987215

Please sign in to comment.