alamb commented on issue #14608: URL: https://github.com/apache/datafusion/issues/14608#issuecomment-2851315858
I think we could use a user defined **TABLE** function: https://datafusion.apache.org/library-user-guide/adding-udfs.html#adding-a-user-defined-table-function So that would look something like ```sql SELECT * from tpch.lineitem(1.0) SELECT * from tpch.orders(1.0) ... ``` I think these table functions would be useful as their own crate In terms of a command to create all the tables, perhaps we can make another table function like ```sql SELECT * from tpchgen(1.0) ``` And have it return a struct with a status. Perhaps like | Header | |--------| | `{ output_location: "/foo/bar/tpch", format: "parquet", scale_factor: "1.0", tables: 8, bytes: 123456 }` | (this table function internally would use the `tpch.lineitem` function defined above -- 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