[enhancement](rewrite) add OrToIn rule && fix expr clone problems
Proposed changes
Issue Number: close #12871
Problem summary
- support Or to In rewrite rule
- fix Expr clone problems. It should create a new object, or it will always be shallow-copy.
Checklist(Required)
- Does it affect the original behavior:
- [ ] Yes
- [x] No
- [ ] I don't know
- Has unit tests been added:
- [x] Yes
- [ ] No
- [ ] No Need
- Has document been added or modified:
- [ ] Yes
- [ ] No
- [x] No Need
- Does it need to update dependencies:
- [ ] Yes
- [x] No
- Are there any changes that cannot be rolled back:
- [ ] Yes (If Yes, please explain WHY)
- [x] No
Further comments
If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...
- fe unit-tests passed locally.
- compiled and manually tested function passed
test results:


PR approved by at least one committer and no changes requested.
PR approved by anyone and no changes requested.
TeamCity pipeline, clickbench performance test result: the sum of best hot time: 34.65 seconds load time: 638 seconds storage size: 17123113066 Bytes https://doris-community-test-1308700295.cos.ap-hongkong.myqcloud.com/tmp/20221227102546_clickbench_pr_69344.html
PR approved by at least one committer and no changes requested.
It seems this PR introduced an unstable test, please see http://43.132.222.7:8111/viewLog.html?buildId=69682&buildTypeId=Doris_Doris_FeUt cc @caiconghui @morrySnow