Fixed error with default value of Enum and WITH TOTALS [#METR-23539].

This commit is contained in:
Alexey Milovidov 2016-11-18 11:29:45 +03:00
parent ef85902daa
commit 6d914bc4db

View File

@ -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;