You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FastCSV allows the enforcement of equal field count in the Reader (via CsvReaderBuilder.ignoreDifferentFieldCount(boolean)). This allows for failing fast on malformed CSV files. However, the Writer lacks this feature.
The idea is to add a similar option to the Writer, which would throw an exception if the number of fields in a record does not match the expected count (either explicitly set or inferred from the first record).
Additionally, this could also prevent empty lines from being written to the CSV file (via calling CsvWriter.writeRecord(String...) without any arguments).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
FastCSV allows the enforcement of equal field count in the Reader (via
CsvReaderBuilder.ignoreDifferentFieldCount(boolean)
). This allows for failing fast on malformed CSV files. However, the Writer lacks this feature.The idea is to add a similar option to the Writer, which would throw an exception if the number of fields in a record does not match the expected count (either explicitly set or inferred from the first record).
Additionally, this could also prevent empty lines from being written to the CSV file (via calling
CsvWriter.writeRecord(String...)
without any arguments).Beta Was this translation helpful? Give feedback.
All reactions