()
| 3158 | |
| 3159 | |
| 3160 | def test_table_to_recordbatchreader(): |
| 3161 | table = pa.Table.from_pydict({'x': [1, 2, 3]}) |
| 3162 | reader = table.to_reader() |
| 3163 | assert table.schema == reader.schema |
| 3164 | assert table == reader.read_all() |
| 3165 | |
| 3166 | reader = table.to_reader(max_chunksize=2) |
| 3167 | assert reader.read_next_batch().num_rows == 2 |
| 3168 | assert reader.read_next_batch().num_rows == 1 |
| 3169 | |
| 3170 | |
| 3171 | @pytest.mark.acero |
nothing calls this directly
no outgoing calls
no test coverage detected