You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/22 17:53:51 UTC

[GitHub] [arrow-rs] tustvold opened a new issue, #2136: Add TypedDictionaryArray

tustvold opened a new issue, #2136:
URL: https://github.com/apache/arrow-rs/issues/2136

   **Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
   
   `DictionaryArray` does not know the type of its underlying child array, and therefore cannot implement `ArrayAccessor` directly.
   
   **Describe the solution you'd like**
   
   Introduce something like the following
   
   ```
   pub struct TypedDictionaryArray<'a, K: ArrowDictionaryKeyType, T: ArrayAccessor> {
       dict: &'a DictionaryArray<K>,
       values: T
   }
   
   impl <'a, K: ArrowDictionaryKeyType, T: ArrayAccessor> ArrayAccessor for TypedDictionaryArray<'a, K, T> {
       ...
   }
   ```
   
   This will allow having standard implementations of kernels in terms of ArrayAccessor that will also work for DictionaryArray (once downcast to the appropriate type).
   
   **Describe alternatives you've considered**
   We could continue to special case the various different types of dictionary, using macros to reduce duplication
   
   **Additional context**
   
   #2135 
   


-- 
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: github-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow-rs] tustvold closed issue #2136: Add TypedDictionaryArray

Posted by GitBox <gi...@apache.org>.
tustvold closed issue #2136: Add TypedDictionaryArray
URL: https://github.com/apache/arrow-rs/issues/2136


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org