Kikyou1997 opened a new pull request, #21326: URL: https://github.com/apache/doris/pull/21326
## Proposed changes Add new rule named "OrToIn", used to convert multi equalTo which has same slot and compare to a literal of disjunction to a InPredicate so that it could be pushdown to storage engine. for example: ```sql col1 = 1 or col1 = 2 or col1 = 3 and (col2 = 4) col1 = 1 and col1 = 3 and col2 = 3 or col2 = 4 (col1 = 1 or col1 = 2) and (col2 = 3 or col2 = 4) ``` would be converted to ```sql col1 in (1, 2) or col1 = 3 and (col2 = 4) col1 = 1 and col1 = 3 and col2 = 3 or col2 = 4 (col1 in (1, 2) and (col2 in (3, 4))) ``` ## Further comments If this is a relatively large or complex change, kick off the discussion at [[email protected]](mailto:[email protected]) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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]
