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

fix(csv): resolve "extra data after last expected column" error #70

Merged
merged 2 commits into from
Jun 10, 2024

Conversation

hcvdwerf
Copy link

Enclosed fields containing commas in double quotes to ensure proper CSV parsing. This fix addresses the issue where extra data was detected after the last expected column.

Enclosed fields containing commas in double quotes to ensure proper CSV parsing.
This fix addresses the issue where extra data was detected after the last expected column.
Copy link

@kburger kburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment added.

Comment on lines 1724 to 1725
https://gdi.onemilliongenomes.eu,GDI,en
https://en.wikipedia.org/wiki/Colorectal_cancer,Colorectal cancer,en
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see not all lines have their label quoted. Should all labels be quoted for consistency sake, or are there specific cases that cause an issue?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the problem was for comma in for example
http://purl.bioontology.org/ontology/ICD10CM/B34.2,"Coronavirus infection, unspecified",en

between Coronavirus infection and unspecified. This only happens with the new data added

Copy link

sonarqubecloud bot commented Jun 5, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@hcvdwerf hcvdwerf requested a review from kburger June 10, 2024 11:30
Copy link

@kburger kburger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have not checked all lines, but at first glance it looked good.

@hcvdwerf hcvdwerf merged commit ee05f53 into main Jun 10, 2024
2 checks passed
@hcvdwerf hcvdwerf deleted the escape-characters branch June 10, 2024 11:38
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