From c4112ebd91205e71b87158e14e2497243446f0ec Mon Sep 17 00:00:00 2001 From: taniabogatsch <44262898+taniabogatsch@users.noreply.github.com> Date: Fri, 21 Jun 2024 16:49:53 +0200 Subject: [PATCH] add remaining types --- vector_casts.go | 3 ++- vector_setters.go | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/vector_casts.go b/vector_casts.go index 5e76ff5f..fe30f874 100644 --- a/vector_casts.go +++ b/vector_casts.go @@ -19,7 +19,8 @@ func (vec *vector) tryCastUnsafe(val any) (any, error) { // Multi-level nested list. switch val.(type) { case []bool, []int8, []int16, []int32, []int64, []uint8, []uint16, []uint32, - []uint64, []float32, []float64, []time.Time, []Interval, []map[string]any, []Map: + []uint64, []float32, []float64, []time.Time, []Interval, []*big.Int, []string, + [][]byte, []Decimal, []map[string]any, []Map, []UUID: return val, nil default: return vec.tryCastList(val, false) diff --git a/vector_setters.go b/vector_setters.go index e2758c62..ff52fa23 100644 --- a/vector_setters.go +++ b/vector_setters.go @@ -187,10 +187,20 @@ func (vec *vector) setList(rowIdx C.idx_t, val any) { genericSetList[time.Time](vec, rowIdx, v) case []Interval: genericSetList[Interval](vec, rowIdx, v) + case []*big.Int: + genericSetList[*big.Int](vec, rowIdx, v) + case []string: + genericSetList[string](vec, rowIdx, v) + case [][]byte: + genericSetList[[]byte](vec, rowIdx, v) + case []Decimal: + genericSetList[Decimal](vec, rowIdx, v) case []map[string]any: genericSetList[map[string]any](vec, rowIdx, v) case []Map: genericSetList[Map](vec, rowIdx, v) + case []UUID: + genericSetList[UUID](vec, rowIdx, v) default: // We assume []any, as this is the type-safe code path. genericSetList[any](vec, rowIdx, val.([]any))