mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +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];
|
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);
|
node_to_tree_size.emplace(node_to_process, subtree_size);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user