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

CsvReader: provide correct logical and physical row numbers. #1837

Merged
merged 1 commit into from Jan 15, 2022

Conversation

kosak
Copy link
Contributor

@kosak kosak commented Jan 15, 2022

The numRows value in CsvReader.Result was sometimes wrong (inconsistent with the number of data rows in the columns). On a related matter, the row number reported in exceptions was also sometimes wrong.

This change makes it clearer that there is a "physical" row number (the row number of the input stream), and a "logical" row number (the cell number of the data), and they can differ, due to the presence or absence of column headers and the presence or absence of quoted newlines.

@kosak kosak merged commit 2873296 into deephaven:main Jan 15, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Jan 15, 2022
@kosak kosak deleted the kosak_fix-result-count branch June 23, 2022 03:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants