adriangb commented on issue #15780:
URL: https://github.com/apache/datafusion/issues/15780#issuecomment-2902567097

   > If a query comes with a filter (in Int32 terms), the filter may be 
translated to col1 by equivalent of the unwrap cast optimization (yes, separate 
code).
   
   What about in the situation described above? What happens now is basically 
that both columns get cast to `Int32` to match their table level types. But 
that's at least one extra cast. And there's cases like structs with extra 
fields where I don't think it makes sense to do any cast: if the file type has 
extra fields it's a compatible with any function that operates on the table 
type that has a subset of the fields.


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

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