mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix build.
This commit is contained in:
parent
209793c981
commit
a2cdab2799
@ -29,7 +29,7 @@ void removeConstantsFromSortDescription(const Block & header, SortDescription &
|
|||||||
{
|
{
|
||||||
auto & column = !elem.column_name.empty() ? header.getByName(elem.column_name)
|
auto & column = !elem.column_name.empty() ? header.getByName(elem.column_name)
|
||||||
: header.safeGetByPosition(elem.column_number);
|
: header.safeGetByPosition(elem.column_number);
|
||||||
return column.column && isColumnConst(column.column);
|
return column.column && isColumnConst(*column.column);
|
||||||
}), description.end());
|
}), description.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -42,7 +42,7 @@ void enrichBlockWithConstants(Block & block, const Block & header)
|
|||||||
for (size_t i = 0; i < columns; ++i)
|
for (size_t i = 0; i < columns; ++i)
|
||||||
{
|
{
|
||||||
const auto & col_type_name = header.getByPosition(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});
|
block.insert(i, {col_type_name.column->cloneResized(rows), col_type_name.type, col_type_name.name});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user