Build fix.

This commit is contained in:
Vladimir Chebotarev 2022-05-05 08:58:51 +03:00
parent fd805b0a46
commit 6a363b7429

View File

@ -50,18 +50,18 @@ size_t tryReuseStorageOrderingForWindowFunctions(QueryPlan::Node * parent_node,
if (auto * expression = typeid_cast<ExpressionStep *>(possible_read_from_merge_tree_node->step.get()))
{
if (possible_read_from_merge_tree_node->children.size() != 1)
if (expression->children.size() != 1)
return 0;
possible_read_from_merge_tree_node = possible_read_from_merge_tree_node->children.front();
possible_read_from_merge_tree_node = expression->children.front();
}
if (auto * quota_and_limits = typeid_cast<SettingQuotaAndLimitsStep *>(possible_read_from_merge_tree_node->step.get()))
{
if (possible_read_from_merge_tree_node->children.size() != 1)
if (quota_and_limits->children.size() != 1)
return 0;
possible_read_from_merge_tree_node = possible_read_from_merge_tree_node->children.front();
possible_read_from_merge_tree_node = quota_and_limits->children.front();
}
auto * read_from_merge_tree = typeid_cast<ReadFromMergeTree *>(possible_read_from_merge_tree_node->step.get());