alamb opened a new issue #842:
URL: https://github.com/apache/arrow-rs/issues/842


   **Is your feature request related to a problem or challenge? Please describe 
what you are trying to do.**
   
   I am trying to compare two boolean arrays (see DataFusion PR 
https://github.com/apache/arrow-datafusion/pull/1163) and produce another 
`BooleanArray`
   
   There are a variety of kernels in arrow that support comparing primitive 
(numeric) arrays and string arrays such as `eq`, `eq_utf8` `eq_scalar`, etc.
   
   https://docs.rs/arrow/6.0.0/arrow/compute/kernels/comparison/index.html
   
   
   **Describe the solution you'd like**
   
   I would like the following four kernels in arrow (see implementations in  
https://github.com/apache/arrow-datafusion/pull/1163) 
   
   ```rust
   // return a new BooleanArray which is the result of comparing left and right 
element by element
   fn eq_bool(left: &BooleanArray, right: &BooleanArray) -> 
result<BooleanArray> {
     ..
   }
   // return a new BooleanArray which is the result of comparing left and right 
element by element
   fn neq_bool(left: &BooleanArray, right: &BooleanArray) -> 
result<BooleanArray> {
     ..
   }
   // return a new BooleanArray which is the result of comparing left and right 
element by element
   fn eq_bool_scalar(left: &BooleanArray, right: bool) -> result<BooleanArray> {
     ..
   }
   // return a new BooleanArray which is the result of comparing left and right 
element by element
   fn neq_bool_scalar(left: &BooleanArray, right: bool) -> result<BooleanArray> 
{
     ..
   }
   ```
   


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