Exemplo n.º 1
0
func (this *builder) VisitUnnest(node *algebra.Unnest) (interface{}, error) {
	this.limit = nil

	_, err := node.Left().Accept(this)
	if err != nil {
		return nil, err
	}

	unnest := plan.NewUnnest(node)
	this.subChildren = append(this.subChildren, unnest)
	return nil, nil
}
Exemplo n.º 2
0
func NewUnnest(term *algebra.Unnest) *Unnest {
	return &Unnest{
		term:  term,
		alias: term.Alias(),
	}
}