Skip to content

Conversation

@quinnj
Copy link
Member

@quinnj quinnj commented Jun 28, 2020

Fixes #668. The issue here is that when column names were passed
manually, the code path that "skipped" to the datarow passed in the
starting position as 1 instead of pos variable. This used to not be an
issue because the pos was almost always 1 anyway. With IOBuffer, we
now start pos at io.ptr, so we'll have more cases where it's
critical to start reading at right position.

Fixes #668. The issue here is that when column names were passed
manually, the code path that "skipped" to the datarow passed in the
starting position as 1 instead of `pos` variable. This used to not be an
issue because the `pos` was almost always 1 anyway. With `IOBuffer`, we
now start `pos` at `io.ptr`, so we'll have more cases where it's
critical to start reading at right position.
@quinnj quinnj merged commit da0a5dc into master Jun 28, 2020
@quinnj quinnj deleted the jq/668 branch June 28, 2020 04:29
quinnj added a commit that referenced this pull request Jan 12, 2026
When column names passed manually, ensure we respect starting position
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.

Current buffer position is ignored when header=[] is passed to CSV.File()

2 participants