gruuya commented on issue #813:
URL: https://github.com/apache/iceberg-rust/issues/813#issuecomment-2556524539

   Even more liberally, one could do without changing `get_arrow_datum` at all
   ```diff
            if let Some(idx) = self.bound_reference(reference)? {
   -            let literal = get_arrow_datum(literal)?;
   +            let mut literal = get_arrow_datum(literal)?;
    
                Ok(Box::new(move |batch| {
                    let left = project_column(&batch, idx)?;
   +                if left.data_type() != literal.get().0.data_type() {
   +                    literal = Box::new(Scalar::new(cast(literal.get().0, 
left.data_type())?));
   +                }
                    lt_eq(&left, literal.as_ref())
                }))
   ```


-- 
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: issues-unsubscr...@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to