MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NewTypedComparisonExprWithSubOp

Function NewTypedComparisonExprWithSubOp

pkg/sql/sem/tree/expr.go:401–408  ·  view source on GitHub ↗

NewTypedComparisonExprWithSubOp returns a new ComparisonExpr that is verified to be well-typed.

(
	op, subOp treecmp.ComparisonOperator, left, right TypedExpr,
)

Source from the content-addressed store, hash-verified

399
400// NewTypedComparisonExprWithSubOp returns a new ComparisonExpr that is verified to be well-typed.
401func NewTypedComparisonExprWithSubOp(
402 op, subOp treecmp.ComparisonOperator, left, right TypedExpr,
403) *ComparisonExpr {
404 node := &ComparisonExpr{Operator: op, SubOperator: subOp, Left: left, Right: right}
405 node.typ = types.Bool
406 MemoizeComparisonExprOp(node)
407 return node
408}
409
410// NewTypedIndirectionExpr returns a new IndirectionExpr that is verified to be well-typed.
411func NewTypedIndirectionExpr(expr, index TypedExpr, typ *types.T) *IndirectionExpr {

Callers

nothing calls this directly

Calls 1

MemoizeComparisonExprOpFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…