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

Function NewTypedCollateExpr

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

NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.

(expr TypedExpr, locale string)

Source from the content-addressed store, hash-verified

419
420// NewTypedCollateExpr returns a new CollateExpr that is verified to be well-typed.
421func NewTypedCollateExpr(expr TypedExpr, locale string) *CollateExpr {
422 node := &CollateExpr{
423 Expr: expr,
424 Locale: locale,
425 }
426 node.typ = types.MakeCollatedType(expr.ResolvedType(), locale)
427 return node
428}
429
430// NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.
431func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten {

Callers

nothing calls this directly

Calls 2

MakeCollatedTypeFunction · 0.92
ResolvedTypeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…