valueAt returns the first argument of the window function at the row idx.
(ctx context.Context, idx int)
| 526 | |
| 527 | // valueAt returns the first argument of the window function at the row idx. |
| 528 | func (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. |
no test coverage detected