pub struct ProjectionPushdown {}Expand description
This rule inspects ProjectionExec’s in the given physical plan and tries to
remove or swap with its child.
Furthermore, tries to push down projections from nested loop join filters that only depend on one side of the join. By pushing these projections down, functions that only depend on one side of the join must be evaluated for the cartesian product of the two sides.
Implementations§
Source§impl ProjectionPushdown
impl ProjectionPushdown
pub fn new() -> ProjectionPushdown
Trait Implementations§
Source§impl Debug for ProjectionPushdown
impl Debug for ProjectionPushdown
Source§impl Default for ProjectionPushdown
impl Default for ProjectionPushdown
Source§fn default() -> ProjectionPushdown
fn default() -> ProjectionPushdown
Returns the “default value” for a type. Read more
Source§impl PhysicalOptimizerRule for ProjectionPushdown
impl PhysicalOptimizerRule for ProjectionPushdown
Source§fn optimize(
&self,
plan: Arc<dyn ExecutionPlan>,
_config: &ConfigOptions,
) -> Result<Arc<dyn ExecutionPlan>, DataFusionError>
fn optimize( &self, plan: Arc<dyn ExecutionPlan>, _config: &ConfigOptions, ) -> Result<Arc<dyn ExecutionPlan>, DataFusionError>
Rewrite
plan to an optimized formSource§fn schema_check(&self) -> bool
fn schema_check(&self) -> bool
A flag to indicate whether the physical planner should validate that the rule will not
change the schema of the plan after the rewriting.
Some of the optimization rules might change the nullable properties of the schema
and should disable the schema check.
Auto Trait Implementations§
impl Freeze for ProjectionPushdown
impl RefUnwindSafe for ProjectionPushdown
impl Send for ProjectionPushdown
impl Sync for ProjectionPushdown
impl Unpin for ProjectionPushdown
impl UnwindSafe for ProjectionPushdown
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more