vegarsti commented on code in PR #18981:
URL: https://github.com/apache/datafusion/pull/18981#discussion_r2574742675
##########
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:
Yeah, we definitely need it eventually, I believe several other in progress
PRs have this as well.
--
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]