Fix build.

This commit is contained in:
Nikolai Kochetov 2019-07-08 16:07:46 +03:00
parent 209793c981
commit a2cdab2799

View File

@ -29,7 +29,7 @@ void removeConstantsFromSortDescription(const Block & header, SortDescription &
{
auto & column = !elem.column_name.empty() ? header.getByName(elem.column_name)
: header.safeGetByPosition(elem.column_number);
return column.column && isColumnConst(column.column);
return column.column && isColumnConst(*column.column);
}), description.end());
}
@ -42,7 +42,7 @@ void enrichBlockWithConstants(Block & block, const Block & header)
for (size_t i = 0; i < columns; ++i)
{
const auto & col_type_name = header.getByPosition(i);
if (col_type_name.column && isColumnConst(col_type_name.column))
if (col_type_name.column && isColumnConst(*col_type_name.column))
block.insert(i, {col_type_name.column->cloneResized(rows), col_type_name.type, col_type_name.name});
}
}