Skip to content

Commit a6bee08

Browse files
author
James Cor
committed
reset schema
1 parent cc72538 commit a6bee08

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/plan/project.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ func (p *Project) WithChildren(children ...sql.Node) (sql.Node, error) {
194194
}
195195
np := *p
196196
np.Child = children[0]
197+
np.sch = nil
197198
return &np, nil
198199
}
199200

@@ -209,6 +210,7 @@ func (p *Project) WithExpressions(exprs ...sql.Expression) (sql.Node, error) {
209210
}
210211
np := *p
211212
np.Projections = exprs
213+
np.sch = nil
212214
return &np, nil
213215
}
214216

0 commit comments

Comments
 (0)