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

Function findDynamic

vector/apply.go:32–42  ·  view source on GitHub ↗
(vecs []Any)

Source from the content-addressed store, hash-verified

30}
31
32func findDynamic(vecs []Any) (*Dynamic, bool) {
33 for _, vec := range vecs {
34 if d, ok := vec.(*Dynamic); ok {
35 return d, true
36 }
37 if o, ok := vec.(*Optional); ok {
38 return o.Dynamic, true
39 }
40 }
41 return nil, false
42}
43
44// XXX this is just a temporary hack to always (and very inefficiently)
45// expand vector.Fusion to Dynamic so it can be processed by the old vam logic.

Callers 1

ApplyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected