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

Method orderBy

compiler/semantic/sql.go:521–532  ·  view source on GitHub ↗
(op *ast.SQLOrderBy, scope relScope, seq sem.Seq, inType super.Type)

Source from the content-addressed store, hash-verified

519}
520
521func (t *translator) orderBy(op *ast.SQLOrderBy, scope relScope, seq sem.Seq, inType super.Type) sem.Seq {
522 save := t.scope.sql
523 t.scope.sql = scope
524 defer func() {
525 t.scope.sql = save
526 }()
527 var exprs []sem.SortExpr
528 for _, e := range op.Exprs {
529 exprs = append(exprs, t.sortExpr(scope, e, false, inType))
530 }
531 return append(seq, &sem.SortOp{Node: op, Exprs: exprs})
532}
533
534func (t *translator) sqlWith(with *ast.SQLWith) map[string]*ast.SQLCTE {
535 if with.Recursive {

Callers 1

sqlQueryBodyMethod · 0.95

Calls 1

sortExprMethod · 0.95

Tested by

no test coverage detected