func (b *executorBuilder) buildUnion(v *plan.Union) Executor { e := &UnionExec{ schema: v.GetSchema(), fields: v.Fields(), Sels: make([]Executor, len(v.Selects)), } for i, sel := range v.Selects { selExec := b.build(sel) e.Sels[i] = selExec } return e }
func (b *executorBuilder) buildUnion(v *plan.Union) Executor { e := &UnionExec{ schema: v.GetSchema(), Srcs: make([]Executor, len(v.GetChildren())), ctx: b.ctx, } for i, sel := range v.GetChildren() { selExec := b.build(sel) e.Srcs[i] = selExec } return e }