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

Function CopyExpr

compiler/dag/expr.go:228–241  ·  view source on GitHub ↗
(e Expr)

Source from the content-addressed store, hash-verified

226}
227
228func CopyExpr(e Expr) Expr {
229 if e == nil {
230 panic("CopyExpr nil")
231 }
232 b, err := json.Marshal(e)
233 if err != nil {
234 panic(err)
235 }
236 var copy Expr
237 if err := unpacker.Unmarshal(b, &copy); err != nil {
238 panic(err)
239 }
240 return copy
241}

Callers 3

liftFilterOpsFunction · 0.92
liftFilterIntoJoinFunction · 0.92
equiJoinKeyExprsFunction · 0.92

Calls 2

MarshalMethod · 0.45
UnmarshalMethod · 0.45

Tested by

no test coverage detected