Skip to content
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

Added discardUnmappedColumns option that throws away extra columns that ... #45

Merged
merged 1 commit into from
Aug 3, 2014
Merged

Conversation

mdoelker
Copy link
Contributor

...do not map to a header instead of throwing an error.

I had to introduce this options as I was working with a CSV export that would sometimes generate lines with more columns than specified in the header line. This is clearly a bug in the CSV generator, but as this was third party, I had to fix it on my end. The parser would always throw an error in this case, which will be kind of silenced by throwing away these extra columns.

…at do not map to a header instead of throwing an error.
doug-martin added a commit that referenced this pull request Aug 3, 2014
Added discardUnmappedColumns option that throws away extra columns that ...
@doug-martin doug-martin merged commit 9273b9b into C2FO:master Aug 3, 2014
doug-martin added a commit to doug-martin/fast-csv that referenced this pull request Aug 3, 2014
* Added ability to specify a rowDelimiter when creating a csv.
* Added discardUnmappedColumns option to allow the ignoring of extra data C2FO#45
@doug-martin doug-martin mentioned this pull request Aug 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants