askalt opened a new pull request, #20222:
URL: https://github.com/apache/datafusion/pull/20222

   
   ## Rationale for this change
   
   In our project, we have several UDTFs that depend on the session from which 
they are called -- for example, functions to list views, tables, etc. To 
implement them, we need a way to provide the current session state to the UDTF. 
It would be nice to add the session as an argument to the UDTF call.
   
   ## What changes are included in this PR?
   
   1. Introduce `TableFunctionImpl::call_with_args`: it takes struct 
`TableFunctionArgs`, doing arguments extendable without breaking backward 
compatibility.
   2. Deprecate `TableFunctionImpl::call`.
   3. Switch to `call_with_args` for each UDTF in DF.
   4. Add an example of the UDTF `table_list()` that depends on the session 
state.
   


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