mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
Fix build
This commit is contained in:
parent
54a9b80a11
commit
4ce88298d7
@ -38,19 +38,17 @@ ReadFromStorageStep::ReadFromStorageStep(
|
||||
{
|
||||
if (query_info.prewhere_info->alias_actions)
|
||||
{
|
||||
auto alias_actions = query_info.prewhere_info->alias_actions->buildExpressions();
|
||||
pipe.addSimpleTransform([&](const Block & header)
|
||||
{
|
||||
return std::make_shared<ExpressionTransform>(header, alias_actions);
|
||||
return std::make_shared<ExpressionTransform>(header, query_info.prewhere_info->alias_actions);
|
||||
});
|
||||
}
|
||||
|
||||
auto prewhere_actions = query_info.prewhere_info->prewhere_actions->buildExpressions();
|
||||
pipe.addSimpleTransform([&](const Block & header)
|
||||
{
|
||||
return std::make_shared<FilterTransform>(
|
||||
header,
|
||||
prewhere_actions,
|
||||
query_info.prewhere_info->prewhere_actions,
|
||||
query_info.prewhere_info->prewhere_column_name,
|
||||
query_info.prewhere_info->remove_prewhere_column);
|
||||
});
|
||||
@ -61,10 +59,10 @@ ReadFromStorageStep::ReadFromStorageStep(
|
||||
// This leads to mismatched header in distributed table
|
||||
if (query_info.prewhere_info->remove_columns_actions)
|
||||
{
|
||||
auto remove_actions = query_info.prewhere_info->remove_columns_actions->buildExpressions();
|
||||
pipe.addSimpleTransform([&](const Block & header)
|
||||
{
|
||||
return std::make_shared<ExpressionTransform>(header, remove_actions);
|
||||
return std::make_shared<ExpressionTransform>(
|
||||
header, query_info.prewhere_info->remove_columns_actions);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user