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

Function NewTypedArrayFlattenExpr

pkg/sql/sem/tree/expr.go:476–483  ·  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

474
475// NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.
476func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten {
477 inputTyp := input.(TypedExpr).ResolvedType()
478 node := &ArrayFlatten{
479 Subquery: input,
480 }
481 node.typ = types.MakeArray(inputTyp)
482 return node
483}
484
485// NewTypedIfErrExpr returns a new IfErrExpr that is verified to be well-typed.
486func 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…