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

   @alamb  Adopt a one-time “binding” pass that resolves every logical Expr 
against its input ExprSchema before planning continues. The pass produces a 
BoundExpr  that carries immutable typing metadata:
   
   BoundExpr = { expr: Expr, field: FieldRef, table_reference: 
Option<TableReference> }
   
   field captures both DataType and nullability. it’s computed exactly once 
while binding.
   
   Each planner/optimizer node replaces raw Expr with BoundExpr downstream code 
consumes only bound expressions, so repeated calls to Expr::get_type / nullable 
/ to_field disappear entirely.


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