matthewmturner edited a comment on pull request #984:
URL: https://github.com/apache/arrow-rs/pull/984#issuecomment-991260739
@alamb ive started updating to your proposed approach but now when testing i
get an error that a type annotation is needed for type parameter T. Im still
playing around with it but ran out of time for today. Does that mean that the
scalar needs to be casted to an `ArrowPrimitiveType` that is then used here:
```
eq_scalar(as_primitive_array::<T>(left.values()), right)
```
my naive view is that we are casting to a `PrimitiveArray` using an
`ArrowPrimitiveType` that comes from the scalar value we want to compare. But
what if the values in our `PrimitiveArray` were a larger type than the scalar
(i.e. values were i64 vs scalar of i32) - shouldnt we cast the scalar to a
larger type in that case?
--
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]