MCPcopy Create free account
hub / github.com/dolthub/doltgresql / NewTypedArrayFlattenExpr

Function NewTypedArrayFlattenExpr

postgres/parser/sem/tree/expr.go:553–560  ·  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

551
552// NewTypedArrayFlattenExpr returns a new ArrayFlattenExpr that is verified to be well-typed.
553func NewTypedArrayFlattenExpr(input Expr) *ArrayFlatten {
554 inputTyp := input.(TypedExpr).ResolvedType()
555 node := &ArrayFlatten{
556 Subquery: input,
557 }
558 node.typ = types.MakeArray(inputTyp)
559 return node
560}
561
562// NewTypedIfErrExpr returns a new IfErrExpr that is verified to be well-typed.
563func 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