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

Method Next

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

Next implements the Datum interface.

(ctx context.Context, cmpCtx CompareContext)

Source from the content-addressed store, hash-verified

903
904// Next implements the Datum interface.
905func (d *DFloat) Next(ctx context.Context, cmpCtx CompareContext) (Datum, bool) {
906 f := float64(*d)
907 if math.IsNaN(f) {
908 return DNegInfFloat, true
909 }
910 if f == math.Inf(+1) {
911 return nil, false
912 }
913 return NewDFloat(DFloat(math.Nextafter(f, math.Inf(+1)))), true
914}
915
916var (
917 // DZeroFloat is the DFloat for zero.

Callers

nothing calls this directly

Calls 2

NewDFloatFunction · 0.85
DFloatTypeAlias · 0.85

Tested by

no test coverage detected