andygrove edited a comment on pull request #8740:
URL: https://github.com/apache/arrow/pull/8740#issuecomment-731841856


   @jorgecarleitao @alamb I could use some advice on the best way to make this 
new code support all array types. In the past, I have gone with macros because 
I know how to do that, but perhaps I should be trying to use generics here?
   
   There may also be some patterns in here that we want to extract and 
implement as kernels in the arrow crate. In particular, I would like an `if` 
primitive so that I can do something like:
   
   ```rust
   let new_array = boolean_array.if_then_else(array1, array2);
   ```
   
   If I had this it would simply this code quite a lot.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to