our filter tree is subset of expressions it might be better to implement post parse optimization of expression tree to extract filters from it.
We might implement WalkTree functions that check that expression tree has only filter_item and make filter tree from it.
That allows to use expressions as filters in regular queries without loss of speed due to missed early-reject min-max index optimization at expressions. And also allows to clean up code at PQ filter creation.
our filter tree is subset of expressions it might be better to implement post parse optimization of expression tree to extract filters from it.
We might implement
WalkTree
functions that check that expression tree has onlyfilter_item
and make filter tree from it.That allows to use expressions as filters in regular queries without loss of speed due to missed early-reject min-max index optimization at expressions. And also allows to clean up code at PQ filter creation.