-
-
Notifications
You must be signed in to change notification settings - Fork 150
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
Skip csv line with just commas @csv #368
Comments
There is no setting to detect and remove lines consisting of just commas. Or, if I understand this correctly, all-whitespace values (possibly with linefeed characters). Latter requirement gets tricky as you note since simple pre-filtering cannot be used. It would probably be necessary to do 2-phase processing: first reading entries as |
The requirement is to detect and remove lines consisting of just commas. TIA |
Ok. I will leave this open in case anyone has ideas, time & interest to implement support. |
Hi @GitXm123 , |
Hi, Example input:
Resulting output should be a list of 2 entries - one for id 1 and one for id 2. The line containing only commas should not result in an output row. @GitXm123 could you please confirm whether we have the same feature in mind? The second paragraph of your original post is about newlines in headers and data, but this may be another / additional feature. |
still very early experiment stage. not sure if all test cases match desired results. implementation missing, just fixed compile errors - issue: FasterXML#368 - similar issue: FasterXML#15 - maybe code changes to gain insights: FasterXML@f44a320
Hi,
I am using the jackson csv library to parse a Csv file. My end users use excel to generate the csv and sometimes they remove values form the entire row. This creates a csv line with just a empty commas.
Is it possible to skip such csv rows that have just commas and no values in it?
Note that in my case some csv column values could have new line character included in the data and hence I don't want to write a pre filter to programmatically check and remove the above-mentioned empty lines. The header row almost always has a new line character in some of the column names
Any help is appreciated.
TIA
The text was updated successfully, but these errors were encountered: