MCPcopy Create free account
hub / github.com/brimdata/super / gType

Method gType

compiler/semantic/schema.go:589–598  ·  view source on GitHub ↗
(sctx *super.Context)

Source from the content-addressed store, hash-verified

587}
588
589func (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
600func (s *subqueryScope) superType(sctx *super.Context, unknown *super.TypeError) super.Type {
601 // We are currently treating a subquery like the select body and

Callers 1

superTypeMethod · 0.95

Calls 4

NewFieldFunction · 0.92
groupTmpFunction · 0.85
aggTmpFunction · 0.85
MustLookupTypeRecordMethod · 0.80

Tested by

no test coverage detected