Jefffrey commented on code in PR #18981:
URL: https://github.com/apache/datafusion/pull/18981#discussion_r2572710816


##########
datafusion/common/src/cast.rs:
##########
@@ -334,3 +335,8 @@ pub fn as_list_view_array(array: &dyn Array) -> 
Result<&ListViewArray> {
 pub fn as_large_list_view_array(array: &dyn Array) -> 
Result<&LargeListViewArray> {
     Ok(downcast_value!(array, LargeListViewArray))
 }
+
+// Downcast ArrayRef to RunArray
+pub fn as_run_array<R: RunEndIndexType>(array: &dyn Array) -> 
Result<&RunArray<R>> {

Review Comment:
   Might be useful to have anyway, following suit with similar functions for 
other types above



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to