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

Function andUsingExprs

compiler/semantic/sql.go:650–657  ·  view source on GitHub ↗
(cond ast.Node, exprs []sem.Expr)

Source from the content-addressed store, hash-verified

648}
649
650func andUsingExprs(cond ast.Node, exprs []sem.Expr) sem.Expr {
651 n := len(exprs)
652 e := exprs[n-1]
653 for i := n - 2; i >= 0; i-- {
654 e = sem.NewBinaryExpr(cond, "and", exprs[i], e)
655 }
656 return e
657}
658
659type exprloc struct {
660 loc ast.Node

Callers 2

sqlJoinCondMethod · 0.85
pipeJoinCondMethod · 0.85

Calls 1

NewBinaryExprFunction · 0.92

Tested by

no test coverage detected