Skip to content

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

Description

@st-pasha
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

Activity

  1. added this to the milestone on Feb 8, 2018
  2. self-assigned this
    on Feb 8, 2018
  3. 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[/+] on Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions