nck-2 / test-rep

0 stars 0 forks source link

implement expression tree walk to extract filters #1340

Open githubmanticore opened 1 year ago

githubmanticore commented 1 year ago

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.