thinkharderdev commented on code in PR #3311:
URL: https://github.com/apache/arrow-datafusion/pull/3311#discussion_r962756816
##########
datafusion/core/src/datasource/datasource.rs:
##########
@@ -72,3 +72,12 @@ pub trait TableProvider: Sync + Send {
Ok(TableProviderFilterPushDown::Unsupported)
}
}
+
+/// A factory which creates [`TableProvider`]s at runtime given a URL.
+///
+/// For example, this can be used to create a table "on the fly"
+/// from a directory of files only when that name is referenced.
+pub trait TableProviderFactory: Sync + Send {
Review Comment:
Should `create` be `async`?
The `TableProvider` will have to know the `Schema` which will most likely
have to be inferred by reading from the `ObjectStore` (or involve a network
call otherwise if there is some sort of metastore involved).
--
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]