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

Function NewTypedArrayFlattenExpr

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

NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.

(input Expr)

Source from the content-addressed store, hash-verified

429
430// NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.
431func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten {
432 inputTyp := input.(TypedExpr).ResolvedType()
433 node := &ArrayFlatten{
434 Subquery: input,
435 }
436 node.typ = types.MakeArray(inputTyp)
437 return node
438}
439
440// NewTypedIfErrExpr returns a new IfErrExpr that is verified to be well-typed.
441func NewTypedIfErrExpr(cond, orElse, errCode TypedExpr) *IfErrExpr {

Callers

nothing calls this directly

Calls 2

MakeArrayFunction · 0.92
ResolvedTypeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…