pub async fn sql(&self, query: impl Into<String> + Send) -> Result<Arc<dyn ExecutionPlan>> {
        let planner = SqlQueryPlanner::new();
        let query = query.into();
        let ctx = self.ctx.child_ctx("sql");

        self.ctx
            .run(async move { planner.query(&query, &ctx).await })
            .await
    }
/// Plan a SQL query against the data in `database`, and return a
/// DataFusion physical execution plan.
Plan a SQL query against the data in `database`, and return a
DataFusion physical execution plan.
Plan a SQL query against the data in ` database ` and return a DataFusion physical execution plan .
pub async fn sql(&self, query: impl Into<String> + Send) -> Result<Arc<dyn ExecutionPlan>> {
        let planner = SqlQueryPlanner::new();
        let query = query.into();
        let ctx = self.ctx.child_ctx("sql");
        self.ctx
            .run(async move { planner.query(&query, &ctx).await })
            .await
    }
pub async fn sql ( & self , query : impl Into < String > + Send ) -> Result < Arc < dyn ExecutionPlan > > { let planner = SqlQueryPlanner :: new ( ) ; let query = query . into ( ) ; let ctx = self . ctx . child_ctx ( " " ) ; self . ctx . run ( async move { planner . query ( & query , & ctx ) . await } ) . await }
Plan a SQL query against the data in `database`, and return a
DataFusion physical execution plan.
Plan a SQL query against the data in ` database ` and return a DataFusion physical execution plan .
&self
query
impl Into<String> + Send
&self
query
impl Into<String> + Send