pub trait ContextProvider {
    fn get_table_provider(
        &self,
        name: TableReference<'_>
    ) -> Result<Arc<dyn TableSource>>; fn get_function_meta(&self, name: &str) -> Option<Arc<ScalarUDF>>; fn get_aggregate_meta(&self, name: &str) -> Option<Arc<AggregateUDF>>; fn get_variable_type(&self, variable_names: &[String]) -> Option<DataType>; }
Expand description

The ContextProvider trait allows the query planner to obtain meta-data about tables and functions referenced in SQL statements

Required Methods

Getter for a datasource

Getter for a UDF description

Getter for a UDAF description

Getter for system/user-defined variable type

Implementors