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

Treat empty quoted field as not empty sentinel for Strings #139

Merged
merged 2 commits into from
Oct 21, 2022

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Oct 20, 2022

Implements #138.

The biggest question I have is whether we should view this as a bugfix or a breaking change in behavior. I think it's arguable either way.

As a note, this doesn't break anything in current CSV.jl code, which is maybe a signal that this change in behavior isn't super common or makes that much of a difference?

cc: @nickrobinson251, @Drvi

Implements #138.

The biggest question I have is whether we should view this as a bugfix
or a breaking change in behavior. I think it's arguable either way.

As a note, this doesn't break anything in current CSV.jl code,
which is maybe a signal that this change in behavior isn't super
common or makes that much of a difference?

cc: @nickrobinson251, @Drvi
@codecov
Copy link

codecov bot commented Oct 20, 2022

Codecov Report

Base: 90.98% // Head: 90.98% // No change to project coverage 👍

Coverage data is based on head (4958956) compared to base (10b9503).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #139   +/-   ##
=======================================
  Coverage   90.98%   90.98%           
=======================================
  Files           9        9           
  Lines        1608     1608           
=======================================
  Hits         1463     1463           
  Misses        145      145           
Impacted Files Coverage Δ
src/components.jl 99.15% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

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

👍

I'd be inclined to view this as a bugfix

test/runtests.jl Show resolved Hide resolved
Copy link
Collaborator

@Drvi Drvi left a comment

Choose a reason for hiding this comment

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

👍 I think this might solve one of the failing cases for ChunkedCSV in RAI:)

Co-authored-by: Nick Robinson <npr251@gmail.com>
@quinnj quinnj merged commit 4a07611 into main Oct 21, 2022
@quinnj quinnj deleted the jq/empty_quoted_string_not_sentinel branch October 21, 2022 03:31
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.

3 participants