gianm opened a new pull request #10758:
URL: https://github.com/apache/druid/pull/10758


   If we retain the order, it enables short-circuiting. People can put a
   more selective filter earlier in the list and lower the chance that
   later filters will need to be evaluated.
   
   Short-circuiting was working before #9608, which switched to unordered
   sets to solve a different problem. This patch tries to solve that
   problem a different way.
   
   This patch moves filter simplification logic from "optimize" to
   "toFilter", because that allows the code to be shared with Filters.and
   and Filters.or. The simplification has become more complicated and so
   it's useful to share it.
   
   This patch also removes code from CalciteCnfHelper that is no longer
   necessary because Filters.and and Filters.or are now doing the work.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to