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

Function test_multithreaded_read

python/pyarrow/tests/parquet/test_basic.py:703–717  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

701
702@pytest.mark.pandas
703def test_multithreaded_read():
704 df = alltypes_sample(size=10000)
705
706 table = pa.Table.from_pandas(df)
707
708 buf = io.BytesIO()
709 _write_table(table, buf, compression='SNAPPY', version='2.6')
710
711 buf.seek(0)
712 table1 = _read_table(buf, use_threads=True)
713
714 buf.seek(0)
715 table2 = _read_table(buf, use_threads=False)
716
717 assert table1.equals(table2)
718
719
720@pytest.mark.pandas

Callers

nothing calls this directly

Calls 5

alltypes_sampleFunction · 0.90
_write_tableFunction · 0.90
_read_tableFunction · 0.90
seekMethod · 0.80
equalsMethod · 0.80

Tested by

no test coverage detected