Skip to content

Commit 0514ba2

Browse files
committed
checking for type in map
1 parent 77f92b6 commit 0514ba2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/column/array.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ func (array *Array) read(readColumn columnDecoder, offsets [][]uint64, index uin
139139
return nil, err
140140
}
141141
if array.nullable && level == array.depth-1 {
142-
cSlice, err := nullableAppender[scanT.String()](value, slice)
142+
f, ok := nullableAppender[scanT.String()]
143+
if !ok {
144+
return nil, fmt.Errorf("unsupported Array type '%s'", scanT.String())
145+
}
146+
147+
cSlice, err := f(value, slice)
143148
if err != nil {
144149
return nil, err
145150
}

0 commit comments

Comments
 (0)