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

Csv parsing skip last row if last field of this row is empty #943

Open
rvyshnivskyi opened this issue Jan 13, 2025 · 2 comments
Open

Csv parsing skip last row if last field of this row is empty #943

rvyshnivskyi opened this issue Jan 13, 2025 · 2 comments

Comments

@rvyshnivskyi
Copy link

rvyshnivskyi commented Jan 13, 2025

Method CDL.toJSONArray(csv) skips the last row of the csv if the last field of this row is empty. For example, following csv entry

Field 1,Field 2,Field 3
value11,value12,
value21,value22,

will be parsed into json with only one element like this:

[
   {
       "Field 1": "value11",
       "Field 2": "value12",
       "Field 3": ""
   }
]
@stleary
Copy link
Owner

stleary commented Jan 13, 2025

@rvyshnivskyi Thanks for catching this, will look into it.

@stleary
Copy link
Owner

stleary commented Jan 25, 2025

@rvyshnivskyi Please provide a snippet of code that recreates the issue. I was only able to recreate by omitting the final newline. If that is what you did, then this is probably a works-as-designed issue.

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

No branches or pull requests

2 participants