Skip to content

Commit 111abf3

Browse files
committed
Add new todo comment
Signed-off-by: yibin <[email protected]>
1 parent f037180 commit 111abf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/planner/core/rule_eliminate_projection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ func doPhysicalProjectionElimination(p base.PhysicalPlan) base.PhysicalPlan {
141141
child := p.Children()[0]
142142
if childProj, ok := child.(*PhysicalProjection); ok {
143143
// when current projection is an empty projection(schema pruned by column pruner), no need to reset child's schema
144+
// TODO: avoid producing empty projection in column pruner.
144145
if p.Schema().Len() != 0 {
145146
childProj.SetSchema(p.Schema())
146147
}

0 commit comments

Comments
 (0)