Max implements the Datum interface.
(ctx *EvalContext)
| 3027 | |
| 3028 | // Max implements the Datum interface. |
| 3029 | func (d *DTuple) Max(ctx *EvalContext) (Datum, bool) { |
| 3030 | res := NewDTupleWithLen(d.typ, len(d.D)) |
| 3031 | for i, v := range d.D { |
| 3032 | m, ok := v.Max(ctx) |
| 3033 | if !ok { |
| 3034 | return nil, false |
| 3035 | } |
| 3036 | res.D[i] = m |
| 3037 | } |
| 3038 | return res, true |
| 3039 | } |
| 3040 | |
| 3041 | // Min implements the Datum interface. |
| 3042 | func (d *DTuple) Min(ctx *EvalContext) (Datum, bool) { |
nothing calls this directly
no test coverage detected