Skip to content

ARROW-3656: [C++] Allow whitespace in numeric CSV fields#2875

Closed
pitrou wants to merge 2 commits intoapache:masterfrom
pitrou:ARROW-3656-csv-number-whitespace
Closed

ARROW-3656: [C++] Allow whitespace in numeric CSV fields#2875
pitrou wants to merge 2 commits intoapache:masterfrom
pitrou:ARROW-3656-csv-number-whitespace

Conversation

@pitrou
Copy link
Member

@pitrou pitrou commented Oct 30, 2018

No description provided.

@codecov-io
Copy link

codecov-io commented Oct 30, 2018

Codecov Report

Merging #2875 into master will increase coverage by 0.91%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2875      +/-   ##
==========================================
+ Coverage   87.55%   88.46%   +0.91%     
==========================================
  Files         411      348      -63     
  Lines       63818    59605    -4213     
==========================================
- Hits        55874    52728    -3146     
+ Misses       7870     6877     -993     
+ Partials       74        0      -74
Impacted Files Coverage Δ
cpp/src/arrow/csv/csv-converter-test.cc 100% <100%> (ø) ⬆️
cpp/src/arrow/builder.h 97.76% <100%> (ø) ⬆️
cpp/src/arrow/csv/converter.cc 94.47% <100%> (+0.55%) ⬆️
rust/src/record_batch.rs
go/arrow/array/table.go
rust/src/util/bit_util.rs
go/arrow/math/uint64_amd64.go
go/arrow/internal/testing/tools/bool.go
go/arrow/internal/bitutil/bitutil.go
go/arrow/memory/memory_avx2_amd64.go
... and 56 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5fafd8...fa4f6e3. Read the comment docs.

Copy link

@alendit alendit Oct 31, 2018

Choose a reason for hiding this comment

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

Maybe c > ' ' or even c > ' ' && c > '\t' here to make it more explicit? The last one should get optimized to a single comparison anyway.

Copy link

Choose a reason for hiding this comment

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

Even though it's not a part of the changeset: why do we use the safe method here, but an unsafe one at around 312? Couldn't it both be unsafe?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, good point.

@pitrou
Copy link
Member Author

pitrou commented Nov 5, 2018

@wesm Any concern here? Otherwise I'll rebase and merge soon.

@pitrou pitrou force-pushed the ARROW-3656-csv-number-whitespace branch from fa4f6e3 to 547b936 Compare November 5, 2018 16:42
@pitrou
Copy link
Member Author

pitrou commented Nov 5, 2018

+1, will merge.

@pitrou pitrou closed this in 7011ae0 Nov 5, 2018
@pitrou pitrou deleted the ARROW-3656-csv-number-whitespace branch November 5, 2018 21:00
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