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 7dc5032 commit 3e73c95
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 @@ -1995,6 +1995,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 3e73c95

Please sign in to comment.