mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Small fixup
This commit is contained in:
parent
dd21b40b67
commit
8dbac447e3
@ -422,6 +422,10 @@ void validateTreeSize(const QueryTreeNodePtr & node,
|
||||
subtree_size += node_to_tree_size[node_to_process_child];
|
||||
}
|
||||
|
||||
auto * constant_node = node_to_process->as<ConstantNode>();
|
||||
if (constant_node && constant_node->hasSourceExpression())
|
||||
subtree_size += node_to_tree_size[constant_node->getSourceExpression()];
|
||||
|
||||
node_to_tree_size.emplace(node_to_process, subtree_size);
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user