tv42 opened a new issue, #8805: URL: https://github.com/apache/arrow-datafusion/issues/8805
### Describe the bug I'm trying to pass already-parsed `sqlparser` ASTs to Datafusion (I need more power than `datafusion::sql::parser` exposes). I found `SqlToRel` to do this. `SqlToRel` needs a `ContextProvider`, and this seems to be the only place where a `ContextProvider` is used anywhere. Okay, I'll write one, and wrap everything in `DefaultTableSource`. But now I can't make my `ContextProvider::get_table_source` ask for things from my `CatalogProvider` because `SchemaProvider::table` is async (see: https://github.com/apache/arrow-datafusion/pull/4607, https://github.com/apache/arrow-datafusion/issues/3777#issuecomment-1330163584). If this was just about accessing my own tables, I could write some alternate API bypassing the `SchemaProvider` trait. But how am I supposed to support `SELECT * FROM information_schema.tables` with `ContextProvider`? Note that all the examples and tests for `SqlToRel` just hard-code a trivial schema. This is not realistic. ### To Reproduce _No response_ ### Expected behavior _No response_ ### Additional context _No response_ -- 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]
