This example:
require(data.table)
DT = data.table(A=rep("abc", 10000), B="def")
DT[110, A:='"a"b']
fwrite(DT, f<-tempfile(), quote=F)
fread(f)
produces an error message which is misleading:
Expecting 2 cols but row 0 contains only 1 cols (sep=','). Consider fill=true. <<"a"b,def>>
At least it doesn't crash (which I thought it would given that type[0] gets bumped up from CT_STRING into a non-existent type)...
This example:
produces an error message which is misleading:
At least it doesn't crash (which I thought it would given that
type[0]gets bumped up fromCT_STRINGinto a non-existent type)...