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

Function MustBeDArray

pkg/sql/sem/tree/datum.go:5011–5017  ·  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

5009// MustBeDArray attempts to retrieve a *DArray from an Expr, panicking if the
5010// assertion fails.
5011func MustBeDArray(e Expr) *DArray {
5012 i, ok := AsDArray(e)
5013 if !ok {
5014 panic(errors.AssertionFailedf("expected *DArray, found %T", e))
5015 }
5016 return i
5017}
5018
5019// MaybeSetCustomOid checks whether t has a special oid that we want to set into
5020// d. Must be kept in sync with DArray.ResolvedType. Returns an error if t is

Callers 4

AppendMethod · 0.85
AppendToMaybeNullArrayFunction · 0.85
PrependToMaybeNullArrayFunction · 0.85
ConcatArraysFunction · 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…