-
Notifications
You must be signed in to change notification settings - Fork 991
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] broken functionality in 1.9.6 #1267
Comments
Minimum reproducible code is now added. |
This bug has now been released in v1.9.6. |
@ziyadsaeed |
it isn't resolved. I'm mentioning that this bug was not fixed in the dev version and now the release version 1.9.6 has this bug. |
The default behaviour is right as it is. I'd expect |
what is the workaround to ask fread to just read the first line. |
in 1.9.6 (and 1.9.7 to this point of time)
and this only happens in small files: for ( i in 100:1) {
lines <- paste0(paste(rep("1,2,3", i), collapse='\n'), "\n1,2")
fread(lines, nrows=i)
} the above code stopped at i =4, which means the somewhat "undocumented" type checking behavior forces a parsing of at least 5 lines, regardless of the actual number of lines in the given file. the impact of such feature is that whenever we are it will be appreciated that if we can optionally disable such type-checking behavior, or the argument |
fread from v1.9.4 gives correct results but fread from dev 1.9.5 doesn't.
For eg
create a test.csv file
Notice there are different number of columns
fread from 1.9.4
This is what I want
But in fread from v1.9.5
Not the expected result.
The text was updated successfully, but these errors were encountered: