newArray returns a vector whose single element is an array of elems.
(elems vector.Any)
| 50 | |
| 51 | // newArray returns a vector whose single element is an array of elems. |
| 52 | func (c *cachedSubquery) newArray(elems vector.Any) vector.Any { |
| 53 | if d, ok := elems.(*vector.Dynamic); ok { |
| 54 | elems = vector.NewUnionFromDynamic(c.sctx, d) |
| 55 | } |
| 56 | arrayType := c.sctx.LookupTypeArray(elems.Type()) |
| 57 | offsets := []uint32{0, elems.Len()} |
| 58 | return vector.NewArray(arrayType, offsets, elems) |
| 59 | } |
| 60 | |
| 61 | // vectorConcat returns a vector concatenating vecs. |
| 62 | func (c *cachedSubquery) vectorConcat(vecs []vector.Any) vector.Any { |
no test coverage detected