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

Function MustBeDArray

pkg/sql/sem/tree/datum.go:3326–3332  ·  view source on GitHub ↗

MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the assertion fails.

(e Expr)

Source from the content-addressed store, hash-verified

3324// MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the
3325// assertion fails.
3326func MustBeDArray(e Expr) *DArray {
3327 i, ok := AsDArray(e)
3328 if !ok {
3329 panic(errors.AssertionFailedf("expected *DArray, found %T", e))
3330 }
3331 return i
3332}
3333
3334// ResolvedType implements the TypedExpr interface.
3335func (d *DArray) ResolvedType() *types.T {

Callers 6

AppendMethod · 0.85
AppendToMaybeNullArrayFunction · 0.85
PrependToMaybeNullArrayFunction · 0.85
ConcatArraysFunction · 0.85
eval.goFile · 0.85
EvalMethod · 0.85

Calls 1

AsDArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…