mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Fixed error with default value of Enum and WITH TOTALS [#METR-23539].
This commit is contained in:
parent
ef85902daa
commit
6d914bc4db
@ -172,7 +172,7 @@ void TotalsHavingBlockInputStream::addToTotals(Block & totals, Block & block, co
|
||||
if (init)
|
||||
{
|
||||
ColumnPtr new_column = current.type->createColumn();
|
||||
new_column->insertDefault();
|
||||
new_column->insert(current.type->getDefault());
|
||||
totals.insert(ColumnWithTypeAndName(new_column, current.type, current.name));
|
||||
}
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user