(val decimal128.Num, dt *arrow.Decimal128Type)
| 826 | if r.done || r.err != nil { |
| 827 | return false |
| 828 | } |
| 829 | |
| 830 | // Advance within current batch |
| 831 | if r.currentBatch != nil && r.batchRow+1 < int(r.currentBatch.NumRows()) { |
| 832 | r.batchRow++ |
| 833 | return true |
| 834 | } |
| 835 | |
| 836 | // Release previous batch |
| 837 | if r.currentBatch != nil { |
| 838 | r.currentBatch.Release() |
| 839 | r.currentBatch = nil |
| 840 | } |
| 841 | |
| 842 | // Read next batch, skipping empty batches |
| 843 | for r.reader.Next() { |
| 844 | r.currentBatch = r.reader.RecordBatch() |
| 845 | r.currentBatch.Retain() |
| 846 | r.batchRow = 0 |
| 847 | if r.currentBatch.NumRows() > 0 { |
| 848 | return true |
| 849 | } |
| 850 | r.currentBatch.Release() |
| 851 | r.currentBatch = nil |
| 852 | } |
| 853 | |
| 854 | r.done = true |
| 855 | r.err = r.reader.Err() |
no test coverage detected