(record arrow.RecordBatch)
| 63 | } |
| 64 | |
| 65 | func transformRecord(record arrow.RecordBatch) ([][]any, error) { |
| 66 | res := make([][]any, record.NumRows()) |
| 67 | var err error |
| 68 | for i := int64(0); i < record.NumRows(); i++ { |
| 69 | row := make([]any, record.NumCols()) |
| 70 | for j := 0; int64(j) < record.NumCols(); j++ { |
| 71 | row[j], err = getValue(record.Column(j), int(i)) |
| 72 | if err != nil { |
| 73 | return nil, err |
| 74 | } |
| 75 | } |
| 76 | res[i] = row |
| 77 | } |
| 78 | return res, nil |
| 79 | } |
no test coverage detected