#27685
{
    ColumnRawPtrs ptrs;
    ptrs.reserve(columns.size());
    for (const auto & column : columns)
        ptrs.push_back(column.get());
    return ptrs;
}
void removeLowCardinalityInplace(Block & block)
{
    for (size_t i = 0; i < block.columns(); ++i)
    {
        auto & col = block.getByPosition(i);
        col.column = recursiveRemoveLowCardinality(col.column);
        col.type = recursiveRemoveLowCardinality(col.type);
    }
}
void removeLowCardinalityInplace(Block & block, const Names & names, bool change_type)
{
    for (const String & column_name : names)
    {
        auto & col = block.getByName(column_name);
        col.column = recursiveRemoveLowCardinality(col.column);
        if (change_type)
            col.type = recursiveRemoveLowCardinality(col.type);
    }
}
void restoreLowCardinalityInplace(Block & block, const Names & lowcard_keys)