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

Function slice

plugins/destination/duckdb/client/read.go:79–85  ·  view source on GitHub ↗
(r arrow.RecordBatch)

Source from the content-addressed store, hash-verified

77}
78
79func slice(r arrow.RecordBatch) []arrow.RecordBatch {
80 res := make([]arrow.RecordBatch, r.NumRows())
81 for i := int64(0); i < r.NumRows(); i++ {
82 res[i] = r.NewSlice(i, i+1)
83 }
84 return res
85}
86
87func reverseTransformRecord(sc *arrow.Schema, rec arrow.RecordBatch) arrow.RecordBatch {
88 cols := make([]arrow.Array, rec.NumCols())

Callers 1

ReadMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected