JuliaData / CSV.jl

Utility library for working with CSV and other delimited files in the Julia programming language
https://csv.juliadata.org/
Other
459 stars 141 forks source link

can not read the csv with large cells written by itself #1115

Closed ctarn closed 7 months ago

ctarn commented 7 months ago
using CSV
d = [(x="a"^(2^22),y="b"^(2^22),)]
CSV.write("tmp.csv", d) |> CSV.File |> display
"""
output:
1-element CSV.File:
 CSV.Row: (x = missing, y = missing, z = missing)
"""

d = [(x="a"^(2^20),y="b"^(2^20),)]
CSV.write("tmp.csv", d) |> CSV.File |> display
"""
output:
1-element CSV.File:
 CSV.Row: (x = missing, y = missing, z = missing)
"""
nickrobinson251 commented 7 months ago

Yes, i believe 2^20 is the limit for the longest string we can parse in an individual cell

Tracked here: https://github.com/JuliaData/CSV.jl/issues/935