Skip to content

Commit

Permalink
Add new todo comment
Browse files Browse the repository at this point in the history
Signed-off-by: yibin <[email protected]>
  • Loading branch information
yibin87 committed Apr 24, 2024
1 parent f037180 commit 111abf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/planner/core/rule_eliminate_projection.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func doPhysicalProjectionElimination(p base.PhysicalPlan) base.PhysicalPlan {
child := p.Children()[0]
if childProj, ok := child.(*PhysicalProjection); ok {
// when current projection is an empty projection(schema pruned by column pruner), no need to reset child's schema
// TODO: avoid producing empty projection in column pruner.
if p.Schema().Len() != 0 {
childProj.SetSchema(p.Schema())
}
Expand Down

0 comments on commit 111abf3

Please sign in to comment.