Min implements the Datum interface.
(ctx *EvalContext)
| 3040 | |
| 3041 | // Min implements the Datum interface. |
| 3042 | func (d *DTuple) Min(ctx *EvalContext) (Datum, bool) { |
| 3043 | res := NewDTupleWithLen(d.typ, len(d.D)) |
| 3044 | for i, v := range d.D { |
| 3045 | m, ok := v.Min(ctx) |
| 3046 | if !ok { |
| 3047 | return nil, false |
| 3048 | } |
| 3049 | res.D[i] = m |
| 3050 | } |
| 3051 | return res, true |
| 3052 | } |
| 3053 | |
| 3054 | // IsMax implements the Datum interface. |
| 3055 | func (d *DTuple) IsMax(ctx *EvalContext) bool { |
nothing calls this directly
no test coverage detected