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

Function vectorElems

compiler/optimizer/pruner.go:281–290  ·  view source on GitHub ↗
(e dag.Expr)

Source from the content-addressed store, hash-verified

279}
280
281func vectorElems(e dag.Expr) []dag.VectorElem {
282 switch e := e.(type) {
283 case *dag.ArrayExpr:
284 return e.Elems
285 case *dag.SetExpr:
286 return e.Elems
287 default:
288 panic(e)
289 }
290}
291
292func literalsInArrayOrSet(elems []dag.VectorElem) []*dag.PrimitiveExpr {
293 var literals []*dag.PrimitiveExpr

Callers 2

metaPrunerBinaryExprFunction · 0.85
isConstFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected