Skip to content

Commit

Permalink
fix test_orc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wgtmac committed Jan 13, 2025
1 parent d888b50 commit b18c5c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/pyarrow/tests/test_orc.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def test_buffer_readwrite_with_writeoptions():
compression='snappy',
file_version='0.11',
row_index_stride=5000,
compression_block_size=32768,
compression_block_size=65536,
)
buffer_reader = pa.BufferReader(buffer_output_stream.getvalue())
orc_file = orc.ORCFile(buffer_reader)
Expand All @@ -344,7 +344,7 @@ def test_buffer_readwrite_with_writeoptions():
assert orc_file.compression == 'SNAPPY'
assert orc_file.file_version == '0.11'
assert orc_file.row_index_stride == 5000
assert orc_file.compression_size == 32768
assert orc_file.compression_size == 65536

# deprecated keyword order
buffer_output_stream = pa.BufferOutputStream()
Expand All @@ -355,7 +355,7 @@ def test_buffer_readwrite_with_writeoptions():
compression='uncompressed',
file_version='0.11',
row_index_stride=20000,
compression_block_size=16384,
compression_block_size=65536,
)
buffer_reader = pa.BufferReader(buffer_output_stream.getvalue())
orc_file = orc.ORCFile(buffer_reader)
Expand All @@ -365,7 +365,7 @@ def test_buffer_readwrite_with_writeoptions():
assert orc_file.compression == 'UNCOMPRESSED'
assert orc_file.file_version == '0.11'
assert orc_file.row_index_stride == 20000
assert orc_file.compression_size == 16384
assert orc_file.compression_size == 65536


def test_buffer_readwrite_with_bad_writeoptions():
Expand Down

0 comments on commit b18c5c1

Please sign in to comment.