fix build

This commit is contained in:
Nikolai Kochetov 2018-03-19 20:52:16 +03:00
parent 2ca5e85327
commit 2efd067a5c

View File

@ -434,7 +434,7 @@ void ColumnNullable::checkConsistency() const
MutableColumnPtr makeNullable(MutableColumnPtr && column)
{
if (column->isColumnNullable())
return column;
return std::move(column);
if (column->isColumnConst())
return ColumnConst::create(makeNullable(static_cast<ColumnConst &>(*column).getDataColumnPtr()->assumeMutable())