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

fread error if integer column bumps into quoted field containing comma out-of-sample #2614

Closed
st-pasha opened this issue Feb 8, 2018 · 0 comments
Assignees
Milestone

Comments

@st-pasha
Copy link
Contributor

st-pasha commented Feb 8, 2018

DT = data.table(A=rep(1, 2200), B="3")
DT[111, B:="3,456"]
fwrite(DT, f<-tempfile())
fread(f)

Error in fread(f) : 
  Line 112 has more than the expected 2 fields. Stopped on <<56">> at character 7. Consider setting 'comment.char=' if there is a trailing comment to be ignored. First 500 characters of line: <<1,"3,456">>

File contents around that line :

1,3
1,3
1,"3,456"
1,3
1,3
@st-pasha st-pasha added this to the v1.10.6 milestone Feb 8, 2018
@st-pasha st-pasha self-assigned this Feb 8, 2018
@mattdowle mattdowle changed the title fread parsing error if integer column bumps into string on out-of-sample row fread error if integer column bumps into quoted field containing comma out-of-sample Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant