MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / reverseTransformUint8

Function reverseTransformUint8

plugins/destination/duckdb/client/read.go:240–251  ·  view source on GitHub ↗
(arr *array.Uint32)

Source from the content-addressed store, hash-verified

238 return bldr.NewMapArray()
239}
240func reverseTransformUint8(arr *array.Uint32) arrow.Array {
241 builder := array.NewUint8Builder(memory.DefaultAllocator)
242 for i := 0; i < arr.Len(); i++ {
243 if arr.IsNull(i) {
244 builder.AppendNull()
245 continue
246 }
247 builder.Append(uint8(arr.Value(i)))
248 }
249
250 return builder.NewArray()
251}
252
253func reverseTransformUint16(arr *array.Uint32) arrow.Array {
254 builder := array.NewUint16Builder(memory.DefaultAllocator)

Callers 1

reverseTransformArrayFunction · 0.85

Calls 2

AppendMethod · 0.80
ValueMethod · 0.65

Tested by

no test coverage detected