We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f037180 commit 111abf3Copy full SHA for 111abf3
pkg/planner/core/rule_eliminate_projection.go
@@ -141,6 +141,7 @@ func doPhysicalProjectionElimination(p base.PhysicalPlan) base.PhysicalPlan {
141
child := p.Children()[0]
142
if childProj, ok := child.(*PhysicalProjection); ok {
143
// 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.
145
if p.Schema().Len() != 0 {
146
childProj.SetSchema(p.Schema())
147
}
0 commit comments