()
| 624 | |
| 625 | @pytest.mark.pandas |
| 626 | def test_v2_set_chunksize(): |
| 627 | df = pd.DataFrame({'A': np.arange(1000)}) |
| 628 | table = pa.table(df) |
| 629 | |
| 630 | buf = io.BytesIO() |
| 631 | write_feather(table, buf, chunksize=250, version=2) |
| 632 | |
| 633 | result = buf.getvalue() |
| 634 | |
| 635 | ipc_file = pa.ipc.open_file(pa.BufferReader(result)) |
| 636 | assert ipc_file.num_record_batches == 4 |
| 637 | assert len(ipc_file.get_batch(0)) == 250 |
| 638 | |
| 639 | |
| 640 | @pytest.mark.pandas |
nothing calls this directly
no test coverage detected