clflushopt commented on issue #14608: URL: https://github.com/apache/datafusion/issues/14608#issuecomment-2906345545
Hey @alamb @kevinjqliu I have individual TPCH table generators working fine https://github.com/clflushopt/datafusion-tpch/blob/main/src/lib.rs but I am still scratching my head at how to implement `tpchgen(sf=1.0)` as a table function. In order to generate the underlying tables, I need access to the `SessionContext` but `SessionContext` is not accessible from `fn call()` I thought about having a constructor that takes `SessionContext` and uses it to maybe register the individual tables using `ctx.register_table()` ? But then that means each one would need to implement `TableProvider` ? This has been very confusing. -- 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: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org