Skip to content

Commit 20914a8

Browse files
committed
use projection column id's for union
1 parent 9ae1a2f commit 20914a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/analyzer/fix_exec_indexes.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,8 @@ func columnIdsForNode(n sql.Node) []sql.ColumnId {
692692
default:
693693
ret = append(ret, columnIdsForNode(n.Child)...)
694694
}
695+
case *plan.SetOp:
696+
ret = append(ret, columnIdsForNode(n.Left())...)
695697
case plan.TableIdNode:
696698
if rt, ok := n.(*plan.ResolvedTable); ok && plan.IsDualTable(rt.Table) {
697699
ret = append(ret, 0)

0 commit comments

Comments
 (0)