(length)
| 688 | |
| 689 | |
| 690 | def make_recordbatch(length): |
| 691 | schema = pa.schema([pa.field('f0', pa.int16()), |
| 692 | pa.field('f1', pa.int16())]) |
| 693 | a0 = pa.array(np.random.randint(0, 255, size=length, dtype=np.int16)) |
| 694 | a1 = pa.array(np.random.randint(0, 255, size=length, dtype=np.int16)) |
| 695 | batch = pa.record_batch([a0, a1], schema=schema) |
| 696 | return batch |
| 697 | |
| 698 | |
| 699 | def test_batch_serialize(): |
no test coverage detected