anjakefala commented on code in PR #36266:
URL: https://github.com/apache/arrow/pull/36266#discussion_r1412668343
##########
python/pyarrow/tests/test_csv.py:
##########
@@ -1972,6 +1972,33 @@ def test_write_csv_decimal(tmpdir, type_factory):
assert out.column('col').cast(type) == table.column('col')
+def test_large_binary_write_to_csv(tmpdir):
+ data_size = int(1E6)
+ file_name = tmpdir / "fixedsize_"+str(data_size)+".csv"
+
+ nparr = np.frombuffer(np.random.randint(65, 91, data_size, 'u1'), 'S4')
+
+ fixed_arr = pa.array(nparr, pa.binary(4))
+ fixed_table = pa.Table.from_arrays([fixed_arr], names=['fixedsize'])
+
+ write_options = WriteOptions(include_header=True, batch_size=2048,
+ delimiter='|')
Review Comment:
Turns out `batch_size` is not important, either!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]