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


   Maybe it is worth spiking / prototyping out what facilities you imagine 
adding to the object store @matthewmturner 
   
   Maybe something like this to create in memory catalogs could help lower the 
barrier to creating catalogs:
   
   ```rust
   /// Helper for creating in memory catalogs
   struct CatalogBuilder {
   ...
   }
   
   impl CatalogBuilder {
     pub fn add_schema(&mut self, schema_name: &str) -> CatalogSchemaBuilder {
      ..
     }
     pub fn build(self) -> Arc<Catalog> {
      ...
     }
   }
   
   
   struct CatalogSchemaBuilder {
   ...
   }
   
   impl CatalogSchemaBuilder {
     // adds the table provider to the specified schema
     pub fn add_table(&mut self, table_name: &str, table_provider: Arc<dyn 
TableProvider)) {
      ..
     }
   
   
     // todo add methods perhaps for easily creating ListingTables or 
something?  
   }
   ```


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