diff --git a/dbms/src/DataStreams/TotalsHavingBlockInputStream.cpp b/dbms/src/DataStreams/TotalsHavingBlockInputStream.cpp index c23f58356d2..b571b9983ff 100644 --- a/dbms/src/DataStreams/TotalsHavingBlockInputStream.cpp +++ b/dbms/src/DataStreams/TotalsHavingBlockInputStream.cpp @@ -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;