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

   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   <!--
   A clear and concise description of what the problem is. Ex. I'm always 
frustrated when [...] 
   (This section helps Arrow developers understand the context and *why* for 
this feature, in addition to  the *what*)
   -->
   
   It would be great if the arrow compute kernel could regard a selection 
vector. Then users won't need to create slices over the existing arrays before 
applying computations with the compute kernel.
   
   **Describe the solution you'd like**
   <!--
   A clear and concise description of what you want to happen.
   -->
   
   A set of new compute APIs that takes a selection vector as the second 
argument.
   
   For example:
   
   ```rust
   pub fn sum<T: ArrowNumericType>(array: &PrimitiveArray<T>, selection_vector: 
&BooleanArray) -> Option<T::Native>
   where
       T::Native: ArrowNativeTypeOp,
   {
   ```
   
   **Describe alternatives you've considered**
   <!--
   A clear and concise description of any alternative solutions or features 
you've considered.
   -->
   
   **Additional context**
   <!--
   Add any other context or screenshots about the feature request here.
   -->
   
   https://github.com/apache/arrow-datafusion/pull/6003 as a use case where the 
selection vector would be beneficial.


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