Struct datafusion_optimizer::optimizer::OptimizerContext
source · pub struct OptimizerContext { /* private fields */ }Expand description
A standalone OptimizerConfig that can be used independently
of DataFusion’s config management
Implementations§
source§impl OptimizerContext
impl OptimizerContext
sourcepub fn filter_null_keys(self, filter_null_keys: bool) -> Self
pub fn filter_null_keys(self, filter_null_keys: bool) -> Self
Specify whether to enable the filter_null_keys rule
sourcepub fn with_query_execution_start_time(
self,
query_execution_tart_time: DateTime<Utc>
) -> Self
pub fn with_query_execution_start_time( self, query_execution_tart_time: DateTime<Utc> ) -> Self
Specify whether the optimizer should skip rules that produce errors, or fail the query
sourcepub fn with_skip_failing_rules(self, b: bool) -> Self
pub fn with_skip_failing_rules(self, b: bool) -> Self
Specify whether the optimizer should skip rules that produce errors, or fail the query
sourcepub fn with_max_passes(self, v: u8) -> Self
pub fn with_max_passes(self, v: u8) -> Self
Specify how many times to attempt to optimize the plan
Trait Implementations§
source§impl Debug for OptimizerContext
impl Debug for OptimizerContext
source§impl OptimizerConfig for OptimizerContext
impl OptimizerConfig for OptimizerContext
source§fn query_execution_start_time(&self) -> DateTime<Utc>
fn query_execution_start_time(&self) -> DateTime<Utc>
Return the time at which the query execution started. This
time is used as the value for now()