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,10 +617,13 @@ void QueryPlan::optimize()
} }
else 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(); stack.pop();
} }
} }