Skip to content

serialized data.tables from before cannot be read out of the box #7488

@ben-schwen

Description

@ben-schwen

Since #7451 we see quite some revdep failures which are around serialization.

tmp = tempfile(fileext = ".rds")
download.file("https://raw.githubusercontent.com/cran/NMdata/master/inst/examples/data/xgxr2.rds", destfile = tmp, mode = "wb")
pk = readRDS(tmp)
pk[, trtact := NULL]
# Error in `[.data.table`(pk, , `:=`(trtact, NULL)) : 
#   Internal error in R_resizeVector_: attempt to resize a non-resizable vector. Please report to the data.table issues tracker.

pk = readRDS(tmp)
alloc.col(pk)
pk[, trtact := NULL]

I have not dived deeper into the issue, but I guess that these data.tables simply have no growable bit set and are therefore not recognized are resizable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions