askoa commented on code in PR #3158:
URL: https://github.com/apache/arrow-rs/pull/3158#discussion_r1030326715
##########
arrow-array/src/builder/generic_list_builder.rs:
##########
@@ -143,6 +149,39 @@ where
GenericListArray::<OffsetSize>::from(array_data)
}
+ /// Builds the [`GenericListArray`] without resetting the builder.
+ pub fn finish_cloned(&self) -> GenericListArray<OffsetSize> {
+ let len = self.len();
+ let values_arr = self
+ .values_builder
+ .as_any()
+ .downcast_ref::<T>()
+ .unwrap()
+ .finish_cloned();
Review Comment:
I just copied from `finish` function. Do you know why it was coded this way
in `finish` function?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]