pub fn query<D: CatalogProvider + 'static>(
        &self,
        database: Arc<D>,
        query: &str,
        executor: &Executor,
    ) -> Result<Arc<dyn ExecutionPlan>> {
        let mut ctx = executor.new_context(ExecutorType::Query);
        ctx.register_catalog(DEFAULT_CATALOG, database);
        ctx.prepare_sql(query).context(Preparing)
    }
/// Plan a SQL query against the data in `database`, and return a
/// DataFusion physical execution plan that runs on the query executor.
///
/// When the plan is executed, it will run on the query executor
/// in a streaming fashion.
Plan a SQL query against the data in `database`, and return a
DataFusion physical execution plan that runs on the query executor.

When the plan is executed, it will run on the query executor
in a streaming fashion.
Plan a SQL query against the data in ` database ` and return a DataFusion physical execution plan that runs on the query executor . When the plan is executed it will run on the query executor in a streaming fashion .
pub fn query<D: CatalogProvider + 'static>(
        &self,
        database: Arc<D>,
        query: &str,
        executor: &Executor,
    ) -> Result<Arc<dyn ExecutionPlan>> {
        let mut ctx = executor.new_context(ExecutorType::Query);
        ctx.register_catalog(DEFAULT_CATALOG, database);
        ctx.prepare_sql(query).context(Preparing)
    }
pub fn query < D : CatalogProvider + ' static > ( & self , database : Arc < D > , query : & str , executor : & Executor , ) -> Result < Arc < dyn ExecutionPlan > > { let mut ctx = executor . new_context ( ExecutorType :: Query ) ; ctx . register_catalog ( DEFAULT_CATALOG , database ) ; ctx . prepare_sql ( query ) . context ( Preparing ) }
Plan a SQL query against the data in `database`, and return a
DataFusion physical execution plan that runs on the query executor.
Plan a SQL query against the data in ` database ` and return a DataFusion physical execution plan that runs on the query executor .
&self
database
Arc<D>
query
&str
executor
&Executor
&self
database
Arc<D>
query
&str
executor
&Executor