alamb commented on issue #4850:
URL: 
https://github.com/apache/arrow-datafusion/issues/4850#issuecomment-1711676282

   >  I found out that we are using the sqlparser crate to parse SQL. 
Therefore, we can modify the parsed statements with the visitorMut trait, 
collect all tables, and replace them with a new table name. Finally, we can use 
the register_csv API to register those tables. This way may be a little tricky.
   
   yes, we could
   
   I would recommend thinking a little more holistically about table functions 
   
   Specifically adding them to the registry: 
https://docs.rs/datafusion/latest/datafusion/execution/registry/trait.FunctionRegistry.html
   
   And then teaching our SQL planner how to look up those functions


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

Reply via email to