Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bufsize of write is defined to be length of row but actually cells #1114

Open
ctarn opened this issue Nov 21, 2023 · 0 comments
Open

bufsize of write is defined to be length of row but actually cells #1114

ctarn opened this issue Nov 21, 2023 · 0 comments

Comments

@ctarn
Copy link

ctarn commented Nov 21, 2023

bufsize of CSV.write is set to 2^22 by default, and according to the doc, it is defined as the length of a row:

bufsize::Int=2^22: The length of the buffer to use when writing each csv-formatted row; default 4MB; if a row is larger than the bufsize an error is thrown

using CSV
CSV.write("tmp.csv", [(x="a"^(2^22),)]) # ok
CSV.write("tmp.csv", [(x="a"^(2^22 + 1),)]) # error
CSV.write("tmp.csv", [(x="a"^(2^22),y="a"^(2^22),)]) # ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants