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

Function MustBeDBitArray

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

MustBeDBitArray attempts to retrieve a DBitArray from an Expr, panicking if the assertion fails.

(e Expr)

Source from the content-addressed store, hash-verified

533// MustBeDBitArray attempts to retrieve a DBitArray from an Expr, panicking if the
534// assertion fails.
535func MustBeDBitArray(e Expr) *DBitArray {
536 b, ok := AsDBitArray(e)
537 if !ok {
538 panic(errors.AssertionFailedf("expected *DBitArray, found %T", e))
539 }
540 return b
541}
542
543// AsDBitArray attempts to retrieve a *DBitArray from an Expr, returning a *DBitArray and
544// a flag signifying whether the assertion was successful. The function should

Callers

nothing calls this directly

Calls 1

AsDBitArrayFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…