Skip to content

Commit 5a08608

Browse files
committed
update
Signed-off-by: Weizhen Wang <[email protected]>
1 parent 763e464 commit 5a08608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/planner/core/rule_decorrelate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ func (s *DecorrelateSolver) pruneRedundantApply(p base.LogicalPlan) (base.Logica
191191
return child, true
192192
}
193193
for col := range s.groupByColumn {
194-
if apply.Schema().Contains(col) {
194+
if apply.Schema().Contains(col) && !child.Schema().Contains(col) {
195195
child.Schema().Append(col)
196196
}
197197
}

0 commit comments

Comments
 (0)