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

Function NewCompare

runtime/sam/expr/function/compare.go:14–20  ·  view source on GitHub ↗
(sctx *super.Context)

Source from the content-addressed store, hash-verified

12}
13
14func NewCompare(sctx *super.Context) *Compare {
15 return &Compare{
16 nullsMax: expr.NewValueCompareFn(order.Asc, order.NullsLast),
17 nullsMin: expr.NewValueCompareFn(order.Asc, order.NullsFirst),
18 sctx: sctx,
19 }
20}
21
22func (e *Compare) Call(args []super.Value) super.Value {
23 nullsMax := true

Callers 2

NewFunction · 0.92
NewFunction · 0.70

Calls 1

NewValueCompareFnFunction · 0.92

Tested by

no test coverage detected