ListingTableConfigExt

Trait ListingTableConfigExt 

Source
pub trait ListingTableConfigExt {
    // Required methods
    fn infer_options<'life0, 'async_trait>(
        self,
        state: &'life0 dyn Session,
    ) -> Pin<Box<dyn Future<Output = Result<ListingTableConfig>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn infer<'life0, 'async_trait>(
        self,
        state: &'life0 dyn Session,
    ) -> Pin<Box<dyn Future<Output = Result<ListingTableConfig>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Extension trait for ListingTableConfig that supports inferring schemas

This trait exists because the following inference methods only work for SessionState implementations of Session. See ListingTableConfig for the remaining inference methods.

Required Methods§

Source

fn infer_options<'life0, 'async_trait>( self, state: &'life0 dyn Session, ) -> Pin<Box<dyn Future<Output = Result<ListingTableConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Infer ListingOptions based on table_path and file suffix.

The format is inferred based on the first table_path.

Source

fn infer<'life0, 'async_trait>( self, state: &'life0 dyn Session, ) -> Pin<Box<dyn Future<Output = Result<ListingTableConfig>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Convenience method to call both Self::infer_options and ListingTableConfig::infer_schema

Implementors§