```
play-eu :) SELECT actor_login, event_type, count() FROM github_events WHERE repo_name = 'ClickHouse/ClickHouse' GROUP BY actor_login, event_type WITH ROLLUP ORDER BY count() DESC LIMIT 10

SELECT
    actor_login,
    event_type,
    count()
FROM github_events
WHERE repo_name = 'ClickHouse/ClickHouse'
GROUP BY
    actor_login,
    event_type
    WITH ROLLUP
ORDER BY count() DESC
LIMIT 10

Query id: 1b7baa06-2ee6-4ae8-b1ed-4c9ecb21514c

Ok.
Exception on client:
Code: 36. DB::Exception: Code: 36. DB::Exception: Unexpected value 0 in enum. (BAD_ARGUMENTS) (version 22.5.1.1984 (official build)). (BAD_ARGUMENTS)
```
{
    Block res;
    res.insert({std::make_shared<DataTypeUInt64>(), "__grouping_set"});
    for (auto & col : header)
        res.insert(std::move(col));
    return res;
}
static Block appendGroupingColumn(Block block, const GroupingSetsParamsList & params)
{
    if (params.empty())
        return block;
    Block res;
    size_t rows = block.rows();
    auto column = ColumnUInt64::create(rows);
    res.insert({ColumnPtr(std::move(column)), std::make_shared<DataTypeUInt64>(), "__grouping_set"});
    for (auto & col : block)
        res.insert(std::move(col));
    return res;
}
AggregatingStep::AggregatingStep(