Skip to content

rbindlist throws errors when combining tables with many columns #7793

@rickhelmus

Description

@rickhelmus

Hello,

A bit of a corner case, but still relevant: when rbind()/rbindlist() is used to combine tables with many columns it fails:

tab1 <- as.data.table(matrix(0L, nrow = 10, ncol = 1E6))
tab2 <- as.data.table(matrix(0L, nrow = 10, ncol = 1E6))
m <- rbind(tab1, tab2)

Fails with: Error: protect(): protection stack overflow.

The tables are big, but not that big :-)

Confirmed on Windows with latest devel of data.table and on Linux with 1.18.2.1.

Thanks,
Rick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions