Open DrewKimball opened 4 months ago
Currently, tree.WalkExpr is not guaranteed to walk all nodes in a given expression tree. This is confusing and has led to bugs in the past, and also limits the usability of the logic. We should consider changing this. See also https://github.com/cockroachdb/cockroach/blob/6478524d42031106c5f0cc484a832ca9383fc6d1/pkg/sql/sem/tree/walk.go#L827-L832
tree.WalkExpr
Jira issue: CRDB-40093
[triage] this is surprising, and seems tractable. maybe we just need to schedule the work? or address this next time it blocks feature work.
Currently,
tree.WalkExpr
is not guaranteed to walk all nodes in a given expression tree. This is confusing and has led to bugs in the past, and also limits the usability of the logic. We should consider changing this. See also https://github.com/cockroachdb/cockroach/blob/6478524d42031106c5f0cc484a832ca9383fc6d1/pkg/sql/sem/tree/walk.go#L827-L832Jira issue: CRDB-40093