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

Method superType

compiler/semantic/schema.go:578–587  ·  view source on GitHub ↗
(sctx *super.Context, unknown *super.TypeError)

Source from the content-addressed store, hash-verified

576}
577
578func (s *selectScope) superType(sctx *super.Context, unknown *super.TypeError) super.Type {
579 fields := []super.Field{super.NewField("in", s.in.superType(sctx, unknown))}
580 if s.isGrouped() {
581 fields = append(fields, super.NewField("g", s.gType(sctx)))
582 }
583 if s.out != nil {
584 fields = append(fields, super.NewField("out", s.out.superType(sctx, unknown)))
585 }
586 return sctx.MustLookupTypeRecord(fields)
587}
588
589func (s *selectScope) gType(sctx *super.Context) super.Type {
590 var fields []super.Field

Callers 1

sqlSelectMethod · 0.95

Calls 5

isGroupedMethod · 0.95
gTypeMethod · 0.95
NewFieldFunction · 0.92
MustLookupTypeRecordMethod · 0.80
superTypeMethod · 0.65

Tested by

no test coverage detected