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

Function NewFields

runtime/vam/expr/function/fields.go:15–22  ·  view source on GitHub ↗
(sctx *super.Context)

Source from the content-addressed store, hash-verified

13}
14
15func NewFields(sctx *super.Context) *Fields {
16 inner := sctx.LookupTypeArray(super.TypeString)
17 return &Fields{
18 sctx: sctx,
19 innerTyp: inner,
20 outerTyp: sctx.LookupTypeArray(inner),
21 }
22}
23
24func (f *Fields) Call(args ...vector.Any) vector.Any {
25 if vec, ok := expr.CheckForNullThenError(args); ok {

Callers 1

NewFunction · 0.70

Calls 1

LookupTypeArrayMethod · 0.80

Tested by

no test coverage detected