Skip to content

cloneFullColumn does not clone the subcolumns at the second and higher levels #9605

@gengliqi

Description

@gengliqi

Bug Report

MutablePtr cloneFullColumn() const
{
MutablePtr res = clone();
res->forEachSubcolumn([](Ptr & subcolumn) { subcolumn = subcolumn->clone(); });
return res;
}

cloneFullColumn only clones the first-level subcolumn so the inner column data will be shared if the column has subcolumns at second and higher levels. For instance, ColumnNullable(ColumnArray(ColumnVector))).

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-8.5This bug affects the 8.5.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions