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

Function defuse

vector/apply.go:55–62  ·  view source on GitHub ↗

XXX this is just a temporary hack to always (and very inefficiently) expand vector.Fusion to Dynamic so it can be processed by the old vam logic. The task is to figure out where we need to turn Fusion into Dynamic (e.g., record spreads, typeof) and do it only when needed and other wise just deref th

(vecs []Any)

Source from the content-addressed store, hash-verified

53// to turn the typevals (or in the future typeIDs) into super.Type. We will need
54// to rework things to
55func defuse(vecs []Any) []Any {
56 for i, vec := range vecs {
57 if f, ok := vec.(*Fusion); ok {
58 vecs[i] = f.Values
59 }
60 }
61 return vecs
62}
63
64func rip(vecs []Any, d *Dynamic) iter.Seq2[int, []Any] {
65 return func(yield func(int, []Any) bool) {

Callers 1

ApplyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected