Пример #1
0
func (this *builder) VisitUnnest(node *algebra.Unnest) (interface{}, error) {
	_, err := node.Left().Accept(this)
	if err != nil {
		return nil, err
	}

	unnest := NewUnnest(node)
	this.subChildren = append(this.subChildren, unnest)
	return nil, nil
}
Пример #2
0
func NewUnnest(term *algebra.Unnest) *Unnest {
	return &Unnest{
		term:  term,
		alias: term.Alias(),
	}
}