Eval implements the TypedExpr interface.
(ctx *EvalContext)
| 4312 | |
| 4313 | // Eval implements the TypedExpr interface. |
| 4314 | func (t *Tuple) Eval(ctx *EvalContext) (Datum, error) { |
| 4315 | tuple := NewDTupleWithLen(t.typ, len(t.Exprs)) |
| 4316 | for i, v := range t.Exprs { |
| 4317 | d, err := v.(TypedExpr).Eval(ctx) |
| 4318 | if err != nil { |
| 4319 | return nil, err |
| 4320 | } |
| 4321 | tuple.D[i] = d |
| 4322 | } |
| 4323 | return tuple, nil |
| 4324 | } |
| 4325 | |
| 4326 | // arrayOfType returns a fresh DArray of the input type. |
| 4327 | func arrayOfType(typ *types.T) (*DArray, error) { |
no test coverage detected