Split filter optimization.

This commit is contained in:
Nikolai Kochetov 2021-01-19 15:08:21 +03:00
parent 91403b2f75
commit 0711957fbb

View File

@ -617,9 +617,12 @@ void QueryPlan::optimize()
}
else
{
trySplitFilter(frame.node, nodes);
if (frame.node->children.size() == 1)
{
while (tryMergeExpressions(frame.node, frame.node->children.front()));
while (tryMergeExpressions(frame.node, frame.node->children.front()));
trySplitFilter(frame.node, nodes);
}
stack.pop();
}