Skip to content

Commit

Permalink
fix: compare table contents in test
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Oct 25, 2023
1 parent 7970e1f commit 0f39e8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/pyarrow/tests/test_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1993,6 +1993,10 @@ def test_large_binary_write_to_csv(tmpdir, data_size):
parse_options = ParseOptions(delimiter="|")
convert_options = ConvertOptions(column_types={"fixedsize": pa.binary(4)})
read_options = ReadOptions(block_size=2048)
res_table = read_csv(file_name, parse_options=parse_options, convert_options=convert_options, read_options=read_options)

res_table = read_csv(file_name, parse_options=parse_options,
convert_options=convert_options,
read_options=read_options)
res_table = res_table.combine_chunks()
res_c = res_table.column(0).chunks[0]

assert res_table.column(0).chunks[0] == fixed_table.column(0).chunks[0]

0 comments on commit 0f39e8c

Please sign in to comment.