Skip to content

Better column name detection - #2596

Merged
mattdowle merged 8 commits into
masterfrom
auto_colname
Jan 30, 2018
Merged

mattdowle merged 8 commits into
masterfrom
auto_colname

Conversation

@mattdowle

Copy link
Copy Markdown
Member

Closes #2526

The types in the potential-column-name line are now compared to the types after all the sample lines have been processed, rather than comparing to just the first data line. In order to ascertain types for the column name line after sampling, a common function was needed: detect_types().

The too-few or too-many fields message when reading data is now constructed in the ordered section so that a reliable line number is now given. Similarly, the error message from sampling jumps is now postponed to data reading stage so that a reliable line number can be given.

@codecov-io

codecov-io commented Jan 30, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #2596 into master will increase coverage by 0.02%.
The diff coverage is 98.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2596      +/-   ##
==========================================
+ Coverage   91.45%   91.48%   +0.02%     
==========================================
  Files          63       63              
  Lines       12130    12137       +7     
==========================================
+ Hits        11093    11103      +10     
+ Misses       1037     1034       -3
Impacted Files Coverage Δ
src/fread.c 96.39% <98.5%> (+0.27%) ⬆️

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 cc60b78...c930fef. Read the comment docs.

@mattdowle
mattdowle requested a review from st-pasha January 30, 2018 09:25
@mattdowle mattdowle added this to the v1.10.6 milestone Jan 30, 2018
@mattdowle
mattdowle merged commit a00d43f into master Jan 30, 2018
@mattdowle
mattdowle deleted the auto_colname branch January 30, 2018 19:46
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