tustvold commented on code in PR #4707:
URL: https://github.com/apache/arrow-rs/pull/4707#discussion_r1296364918


##########
arrow-array/src/array/dictionary_array.rs:
##########
@@ -930,6 +928,64 @@ where
     }
 }
 
+/// Returns a [`AnyDictionaryArray`] if `array` is a dictionary
+///
+/// This can be used to efficiently implement kernels for all possible 
dictionary
+/// keys without needing to create specialized implementations for each key 
type
+pub fn as_any_dictionary_array(array: &dyn Array) -> Option<&dyn 
AnyDictionaryArray> {

Review Comment:
   Moved to AsArray



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

Reply via email to