Struct datafusion_sql::planner::PlannerContext
source · pub struct PlannerContext {
pub prepare_param_data_types: Vec<DataType>,
pub ctes: HashMap<String, LogicalPlan>,
pub outer_query_schema: Option<DFSchema>,
}
Expand description
Struct to store the states used by the Planner. The Planner will leverage the states to resolve CTEs, Views, subqueries and PREPARE statements. The states include Common Table Expression (CTE) provided with WITH clause and Parameter Data Types provided with PREPARE statement and the query schema of the outer query plan
Fields§
§prepare_param_data_types: Vec<DataType>
Data type provided with prepare statement
ctes: HashMap<String, LogicalPlan>
Map of CTE name to logical plan of the WITH clause
outer_query_schema: Option<DFSchema>
The query schema of the outer query plan, used to resolve the columns in subquery
Implementations§
Trait Implementations§
source§impl Clone for PlannerContext
impl Clone for PlannerContext
source§fn clone(&self) -> PlannerContext
fn clone(&self) -> PlannerContext
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more