-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[opt](Nereids) remove between expression to simplify planner #23421
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
184ada8 to
f2ec245
Compare
|
run buildall |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
f2ec245 to
e258634
Compare
e258634 to
fbef81b
Compare
|
run buildall |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
in logical plan builder, there are bugs with between: - for sql `a between random() and random()`, since the two unbound `'random()` are the same, it will rewrite to `a = random()`, but the two random() should be different after bind expression; - for sql `random() between 0.1 and 0.5`, it will rewrite to `random() >= 0.1 and random() <= 0.5`, later when bind expression, the two unbound random() will generate two different bounded random() function, but the two random() need to be the same. so, in logical plan builder, the between shouldn't compare low bound and upper bound, and should not expand before bind expression. relate PR: 1) unique function: #54414 2) remove between: #23421
Proposed changes
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...