-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
CsvFileReader#readAllAsSequence fails on non-equal sized rows #61
Comments
@koral-- Throwing exception is expected behavior. |
Any other question on this topic? Feel free to ask. |
I don't longer need this library, but can help resolve this issue if needed. I don't understand your explanation. Could you elaborate? |
The "CSV" definition is defined on RFC4180.
So, your sample code doesn't write "CSV" file, so it's not unnatural that kotlin-csv cannot read your writing file. |
OK, thanks. Now I understand the explanation. |
Yes, it's intended.
Yes, it should be. To throw exception on the 2nd |
OK so I guess that this issue can be rephrased to something like "Fail fast on writing malformed CSV" and tagged as enhancement., right? |
Yeah, right. Thank you. |
Describe the bug
If rows are not equal-sized an exception is thrown:
com.github.doyaaaaaken.kotlincsv.util.CSVFieldNumDifferentException: Fields num seems to be 4 on each row, but on 2th csv row, fields num is 3.
To Reproduce
Expected behavior
Missing cells are treated as nulls or empty strings.
Environment
Screenshots
N/A
The text was updated successfully, but these errors were encountered: