Fix build

This commit is contained in:
Nikolai Kochetov 2020-11-03 22:30:58 +03:00
parent 4984fdc693
commit 54a9b80a11

View File

@ -803,10 +803,9 @@ Pipe MergeTreeDataSelectExecutor::readFromParts(
if (query_info.prewhere_info && query_info.prewhere_info->remove_columns_actions)
{
auto remove_actions = query_info.prewhere_info->remove_columns_actions->buildExpressions();
res.addSimpleTransform([&remove_actions](const Block & header)
res.addSimpleTransform([&query_info](const Block & header)
{
return std::make_shared<ExpressionTransform>(header, remove_actions);
return std::make_shared<ExpressionTransform>(header, query_info.prewhere_info->remove_columns_actions);
});
}