Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

Add Feature to ensure expected number of CSV fields in each row #113

Closed
rewolf opened this issue Jan 17, 2016 · 1 comment
Closed

Add Feature to ensure expected number of CSV fields in each row #113

rewolf opened this issue Jan 17, 2016 · 1 comment

Comments

@rewolf
Copy link

rewolf commented Jan 17, 2016

Currently, if a CSV line is parsed that has fewer columns than the header specified, the last few columns are just set to null, and it continues without error.

Request is to add a new feature like CsvParser.Feature.REQUIRE_ALL_COLUMNS that will result in an exception if the number of fields for a record/row is less than the expected number.
see http://stackoverflow.com/questions/30775073/jackson-csv-missing-columns/34823728

@cowtowncoder
Copy link
Member

Implemented via #140, for 2.9.0(.pr2): CsvParser.Feature.FAIL_ON_MISSING_COLUMNS

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants