(sctx *super.Context)
| 587 | } |
| 588 | |
| 589 | func (s *selectScope) gType(sctx *super.Context) super.Type { |
| 590 | var fields []super.Field |
| 591 | for k, e := range s.groupings { |
| 592 | fields = append(fields, super.NewField(groupTmp(k), e.typ)) |
| 593 | } |
| 594 | for k := range s.aggs { |
| 595 | fields = append(fields, super.NewField(aggTmp(k), s.aggTypes[k])) |
| 596 | } |
| 597 | return sctx.MustLookupTypeRecord(fields) |
| 598 | } |
| 599 | |
| 600 | func (s *subqueryScope) superType(sctx *super.Context, unknown *super.TypeError) super.Type { |
| 601 | // We are currently treating a subquery like the select body and |
no test coverage detected