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

Method valueAt

pkg/sql/sem/tree/window_funcs.go:528–534  ·  view source on GitHub ↗

valueAt returns the first argument of the window function at the row idx.

(ctx context.Context, idx int)

Source from the content-addressed store, hash-verified

526
527// valueAt returns the first argument of the window function at the row idx.
528func (wfr *WindowFrameRun) valueAt(ctx context.Context, idx int) (Datum, error) {
529 row, err := wfr.Rows.GetRow(ctx, idx)
530 if err != nil {
531 return nil, err
532 }
533 return row.GetDatum(wfr.OrdColIdx)
534}
535
536// RangeModeWithOffsets returns whether the frame is in RANGE mode with at least
537// one of the bounds containing an offset.

Callers 3

getValueByOffsetMethod · 0.95
FrameStartIdxMethod · 0.95
FrameEndIdxMethod · 0.95

Calls 2

GetRowMethod · 0.80
GetDatumMethod · 0.80

Tested by

no test coverage detected