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

   Type coercion and simplification applied to UDTF arguments may break some 
functions with specific arguments parsing logic. e.g. in our project we support 
UDTF that allows to specify index to scan a table: `scan_with(t, index=[ta, 
tb])`. Using `SessionContextProvider` as `ContextProvider` there is the error: 
   
   ```
   Schema error: No field named index.
   ```
   
   It caused by the type coercion here:
   
   
https://github.com/apache/datafusion/blob/4e2c0f1feaef2452323ada9c394ad943eb0b2805/datafusion/core/src/execution/session_state.rs#L1845-L1852
   
   It would be nice to allow UDTF itself to handle arguments parsing. We could 
add a flag that will customize this behavior, allowing to pass args as is.
   


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