waterWang commented on issue #19339:
URL: https://github.com/apache/pinot/issues/19339#issuecomment-5398552855

   I've opened PR #19350 to fix this issue. The fix adds a 
`DistributeConjunctsIntoOrFilterOptimizer` that implements the planner-based 
approach (option 2 from the issue): selective conjuncts (EQUALS/IN on single 
columns) from an enclosing AND are distributed into each OR branch, so that `P 
AND (A OR B)` becomes `P AND ((P AND A) OR (P AND B))`. This ensures the OR 
subtree's scan-based predicates are only evaluated against documents matching 
the selective predicate P.


-- 
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.

To unsubscribe, e-mail: [email protected]

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