Jefffrey commented on PR #19426:
URL: https://github.com/apache/datafusion/pull/19426#issuecomment-3677924655

   Would that cached query then be passed through the optimizer again when 
executed (with the config reset to default), or would it be directly executed?
   
   Because `now()`, `current_date()` and `current_time()` don't actually 
implement invoke, so if they aren't simplified they can't execute physically I 
believe:
   
   
https://github.com/apache/datafusion/blob/d8e68a404aa7955b4913bab1c658a4ec5c82f0fc/datafusion/functions/src/datetime/now.rs#L115-L120
   
   
https://github.com/apache/datafusion/blob/d8e68a404aa7955b4913bab1c658a4ec5c82f0fc/datafusion/functions/src/datetime/current_time.rs#L87-L94
   
   
https://github.com/apache/datafusion/blob/d8e68a404aa7955b4913bab1c658a4ec5c82f0fc/datafusion/functions/src/datetime/current_date.rs#L87-L94


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