jorgecarleitao commented on a change in pull request #9256:
URL: https://github.com/apache/arrow/pull/9256#discussion_r568340343
##########
File path: rust/arrow/src/array/cast.rs
##########
@@ -40,12 +40,20 @@ where
.expect("Unable to downcast to dictionary array")
}
-pub fn as_list_array<S: OffsetSizeTrait>(arr: &ArrayRef) ->
&GenericListArray<S> {
+pub fn as_generic_list_array<S: OffsetSizeTrait>(arr: &ArrayRef) ->
&GenericListArray<S> {
arr.as_any()
.downcast_ref::<GenericListArray<S>>()
.expect("Unable to downcast to list array")
}
+pub fn as_list_array(arr: &ArrayRef) -> &ListArray {
Review comment:
Makes sense. Let's keep it 👍
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]