pub struct ProjectionPruning {
pub required: Vec<String>,
}Expand description
Prune Project column lists to only those columns required by the parent.
When required is empty, this pass is a no-op (all columns are kept).
Fields§
§required: Vec<String>Column names (bare names, not qualified) needed by the consumer of this plan. An empty list means “all columns required” (no pruning).
Trait Implementations§
Source§impl OptPass for ProjectionPruning
impl OptPass for ProjectionPruning
Source§fn apply(&self, plan: LogicalPlan) -> LogicalPlan
fn apply(&self, plan: LogicalPlan) -> LogicalPlan
Apply the rewrite to
plan, returning the (possibly modified) plan.Auto Trait Implementations§
impl Freeze for ProjectionPruning
impl RefUnwindSafe for ProjectionPruning
impl Send for ProjectionPruning
impl Sync for ProjectionPruning
impl Unpin for ProjectionPruning
impl UnsafeUnpin for ProjectionPruning
impl UnwindSafe for ProjectionPruning
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