I must say xsv is really useful tool! However I have one issue that some of my CSV files do not have enough fields. Let's say for this
col1,col2,col3
v1,v2
v3,v4
v5,v6
xsv will throw error CSV error: record 1 (line: 2, byte: 15): found record with 2 fields, but the previous record has 3 fields
My suggestion would be to throw warning instead, and still read the CSV as if the column is empty. This can help people to process some broken (and large) CSV file.
I must say
xsv
is really useful tool! However I have one issue that some of my CSV files do not have enough fields. Let's say for thisxsv
will throw errorCSV error: record 1 (line: 2, byte: 15): found record with 2 fields, but the previous record has 3 fields
My suggestion would be to throw warning instead, and still read the CSV as if the column is empty. This can help people to process some broken (and large) CSV file.