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

Function reverseTransformUint16

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

Source from the content-addressed store, hash-verified

251}
252
253func reverseTransformUint16(arr *array.Uint32) arrow.Array {
254 builder := array.NewUint16Builder(memory.DefaultAllocator)
255 for i := 0; i < arr.Len(); i++ {
256 if arr.IsNull(i) {
257 builder.AppendNull()
258 continue
259 }
260 builder.Append(uint16(arr.Value(i)))
261 }
262
263 return builder.NewArray()
264}
265
266func reverseTransformDate32(arr *array.Timestamp) arrow.Array {
267 builder := array.NewDate32Builder(memory.DefaultAllocator)

Callers 1

reverseTransformArrayFunction · 0.85

Calls 2

AppendMethod · 0.80
ValueMethod · 0.65

Tested by

no test coverage detected