alamb commented on PR #18055:
URL: https://github.com/apache/datafusion/pull/18055#issuecomment-3406578159

   > I already need the schema anyway in order to decide if it makes sense to 
project or not. One simple solution is to just keep a reference to that one. 
But things get a bit weird when a PhysicalExpr has a reference to a schema but 
also receives one externally when nullable and friends are called.
   
   At somepoint in the past we discussed some sort of "precompile" step for 
PhysicalExprs -- which was invoked right before the plan started executing. The 
usecase as I recall was to compile regexp once (rather than per batch). 
   
   There is more background here if you are interested
   - https://github.com/apache/datafusion/issues/8051


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