mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
Build fix.
This commit is contained in:
parent
fd805b0a46
commit
6a363b7429
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user