Module mz_transform::movement::projection_pushdown
source · Expand description
Pushes column removal down through other operators.
This action improves the quality of the query by reducing the width of data in the dataflow. It determines the unique columns an expression depends on, and pushes a projection onto only those columns down through child operators.
A MirRelationExpr::Project
node is actually three transformations in one.
- Projection - removes columns.
- Permutation - reorders columns.
- Repetition - duplicates columns.
This action handles these three transformations like so:
- Projections are pushed as far down as possible.
- Permutations are pushed as far down as is convenient.
- Repetitions are not pushed down at all.
Some comments have been inherited from the Demand
transform.
Note that this transform is one that can operate across views in a dataflow and thus currently exists outside of both the physical and logical optimizers.
Structs§
- Pushes projections down through other operators.
Functions§
- Applies the reverse of [MirScalarExpr.permute] on each expression.
- Same as reverse_permute, but takes column numbers as input