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

Function test_zlib_compression_bug

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

Source from the content-addressed store, hash-verified

794
795@pytest.mark.pandas
796def test_zlib_compression_bug():
797 # ARROW-3514: "zlib deflate failed, output buffer too small"
798 table = pa.Table.from_arrays([pa.array(['abc', 'def'])], ['some_col'])
799 f = io.BytesIO()
800 pq.write_table(table, f, compression='gzip')
801
802 f.seek(0)
803 roundtrip = pq.read_table(f)
804 tm.assert_frame_equal(roundtrip.to_pandas(), table.to_pandas())
805
806
807def test_parquet_file_too_small(tempdir):

Callers

nothing calls this directly

Calls 4

seekMethod · 0.80
arrayMethod · 0.45
write_tableMethod · 0.45
read_tableMethod · 0.45

Tested by

no test coverage detected