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

Method AssertSorted

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

AssertSorted asserts that the DTuple is sorted.

()

Source from the content-addressed store, hash-verified

3141
3142// AssertSorted asserts that the DTuple is sorted.
3143func (d *DTuple) AssertSorted() {
3144 if !d.sorted {
3145 panic(errors.AssertionFailedf("expected sorted tuple, found %#v", d))
3146 }
3147}
3148
3149// SearchSorted searches the tuple for the target Datum, returning an int with
3150// the same contract as sort.Search and a boolean flag signifying whether the datum

Callers 1

SearchSortedMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected