(record arrow.RecordBatch)
| 47 | } |
| 48 | |
| 49 | func transformRecord(record arrow.RecordBatch) [][]any { |
| 50 | var res [][]any |
| 51 | for i := int64(0); i < record.NumRows(); i++ { |
| 52 | var row []any |
| 53 | for j := 0; int64(j) < record.NumCols(); j++ { |
| 54 | v := getValue(record.Column(j), int(i)) |
| 55 | row = append(row, v) |
| 56 | } |
| 57 | res = append(res, row) |
| 58 | } |
| 59 | return res |
| 60 | } |
no test coverage detected