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

Function sortExprsForSortKeys

compiler/optimizer/parallelize.go:319–329  ·  view source on GitHub ↗
(keys order.SortKeys)

Source from the content-addressed store, hash-verified

317}
318
319func sortExprsForSortKeys(keys order.SortKeys) []dag.SortExpr {
320 var exprs []dag.SortExpr
321 for _, k := range keys {
322 exprs = append(exprs, dag.SortExpr{
323 Key: dag.NewThis(k.Key),
324 Order: k.Order,
325 Nulls: k.Order.NullsMax(true)},
326 )
327 }
328 return exprs
329}

Callers 1

concurrentPathMethod · 0.85

Calls 2

NewThisFunction · 0.92
NullsMaxMethod · 0.80

Tested by

no test coverage detected