Small fixup

This commit is contained in:
Dmitry Novik 2024-05-27 15:17:14 +02:00 committed by GitHub
parent dd21b40b67
commit 8dbac447e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
} }