adriangb opened a new issue, #19470:
URL: https://github.com/apache/datafusion/issues/19470

   As discussed in #19426 currently evaluation of stable functions is handled 
in `ScalarUDFImpl::simplify()`.
   It would be nicer if it could be handled in 
`ScalarUDFImpl::invoke_with_args`:
   1. If no simplifier is run the function can have runtime behavior, e.g. 
returning the fixed execution time.
   2. If a simplifier is run the simplifier can call `invoke_with_args` to hit 
the same code path.
   
   This seems to require refactoring `PhysicalExpr::evaluate(RecordBatch)` into 
`PhysicalExpr::evaluate_with_args(EvaluateArgs)` where `EvaluateArgs` is 
symmetrical to `ScalarFunctionArgs`


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