ion-elgreco opened a new issue, #14944:
URL: https://github.com/apache/datafusion/issues/14944

   ### Describe the bug
   
   Currently when you pass a pruning predicate where the predicate has a 
different type as the targeted column it will not prune it, even though in 
theory the value is castable to the target column type.
   
   The predicate looks like this: "month_id = '202502' AND date_id = '20250226'"
   
   However the columns are `int` column not `utf8`. So in theory these string 
values can be casted to int but I don't believe this is happening. Is this 
something that should be added
   
   This is our rust code btw
   
   ```
   // delta-rs/crates/core/src/delta_datafusion/mod.rs
   let pruning_predicate = PruningPredicate::try_new(predicate.clone(), 
logical_schema.clone())?;
   let files_to_prune = pruning_predicate.prune(self.snapshot)?;
   ```
   
   ### To Reproduce
   
   Related delta-rs issue: https://github.com/delta-io/delta-rs/issues/3278
   
   ### Expected behavior
   
   Allow literal value coercion during pruning
   
   ### Additional context
   
   _No response_


-- 
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: github-unsubscr...@datafusion.apache.org.apache.org

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


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

Reply via email to