diff --git a/NEWS.md b/NEWS.md index f4ee8b7866..c64252ca46 100644 --- a/NEWS.md +++ b/NEWS.md @@ -81,6 +81,9 @@ 17. `.SD` would incorrectly include symbol on lhs of `:=` when `.SDcols` is specified and `get()` appears in `j`. Thanks @renkun-ken for reporting and the PR. Closes #2326. +18. Integer values that are too large to fit in `int64` will now be read as strings [#2250](https://github.com/Rdatatable/data.table/issues/2250). + + #### NOTES 1. `?data.table` makes explicit the option of using a `logical` vector in `j` to select columns, [#1978](https://github.com/Rdatatable/data.table/issues/1978). Thanks @Henrik-P for the note and @MichaelChirico for filing. diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index a3a8c6e5ef..2c94ea0fc5 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -10508,6 +10508,9 @@ test(1823.2, DT$z, seq(11, 2)) DT[, z := ncol(.SD) + get("y"), .SDcols = c("x", "z")] test(1823.3, DT$z, seq(12, 3)) +# Issue 2250 +test(1824, fread("A,B\n1,384325987234905827340958734572934\n"), data.table(A=1L, B="384325987234905827340958734572934")) + # Issue 2251 test(1825.1, fread('A,B\n"1","2"', colClasses = "integer"), data.table(A=1L, B=2L)) test(1825.2, fread('A,B\n"1","2"', colClasses = "character"), data.table(A="1", B="2"))