jorgecarleitao commented on pull request #984:
URL: https://github.com/apache/arrow-rs/pull/984#issuecomment-992722355


   IMO we need a `dyn Scalar` and a `cmp_scalar(array: &dyn Array, scalar: &dyn 
Scalar) -> BooleanArray` that dispatches to specific implementations based on 
the array's datatype. We then use `cmp_scalar(dict.values().as_ref(), scalar)` 
and clone the indices. Inspiration for `trait Scalar` here: 
https://github.com/jorgecarleitao/arrow2/tree/main/src/scalar . I hope it helps.


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