findepi commented on issue #18845:
URL: https://github.com/apache/datafusion/issues/18845#issuecomment-3559754855

   There is no reason to "transplant" a typed (bound) expression from one 
schema to some other schema with different input types.
   Doing so would be treating the expressions as _syntactical_ rather than 
_semantical_ operations.
   Outside of initial SQL plan building (where expressions are constructed 
syntactical and then applied to a plan), the expression type does not change 
throughout the planning and optimization process.
   
   That's why I think about this in the terms of [typed 
expressions](https://github.com/apache/datafusion/issues/12604) rather than 
"caching data type and nullability".
   However, I can also see how _caching_ may look more approachable to instill 
over existing code base.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to