alamb commented on issue #4781:
URL: https://github.com/apache/arrow-rs/issues/4781#issuecomment-1710232726

   Update here is that I could use `ScalarValue::to_scalar` successfully
   
   So instead of 
   ```rust
           let predicate = lt_dyn_scalar(&array, 0)?;
   ```
   
   I did:
   ```rust
           let zero = ScalarValue::new_zero(array.data_type())?;
           let predicate = lt(&array, &zero.to_scalar())?;
   ```
   
   Which seems to have worked nicely


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