MCPcopy Create free account
hub / github.com/apache/arrow / test_table_to_recordbatchreader

Function test_table_to_recordbatchreader

python/pyarrow/tests/test_table.py:3160–3168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3158
3159
3160def 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected