arrayOfType returns a fresh DArray of the input type.
(typ *types.T)
| 4325 | |
| 4326 | // arrayOfType returns a fresh DArray of the input type. |
| 4327 | func arrayOfType(typ *types.T) (*DArray, error) { |
| 4328 | if typ.Family() != types.ArrayFamily { |
| 4329 | return nil, errors.AssertionFailedf("array node type (%v) is not types.TArray", typ) |
| 4330 | } |
| 4331 | if err := types.CheckArrayElementType(typ.ArrayContents()); err != nil { |
| 4332 | return nil, err |
| 4333 | } |
| 4334 | return NewDArray(typ.ArrayContents()), nil |
| 4335 | } |
| 4336 | |
| 4337 | // Eval implements the TypedExpr interface. |
| 4338 | func (t *Array) Eval(ctx *EvalContext) (Datum, error) { |
no test coverage detected
searching dependent graphs…