-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[Feat](nereids) add pull up literal when infer predicates #37314
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
[Feat](nereids) add pull up literal when infer predicates #37314
Conversation
|
Thank you for your contribution to Apache Doris. Since 2024-03-18, the Document has been moved to doris-website. |
|
run buildall |
TPC-H: Total hot run time: 40341 ms |
TPC-DS: Total hot run time: 172571 ms |
ClickBench: Total hot run time: 30.93 s |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
5c5d44f to
7441edc
Compare
|
run buildall |
7441edc to
017f777
Compare
|
run buildall |
TPC-H: Total hot run time: 40407 ms |
TPC-DS: Total hot run time: 174090 ms |
ClickBench: Total hot run time: 30.58 s |
|
run buildall |
TPC-H: Total hot run time: 40272 ms |
TPC-DS: Total hot run time: 176320 ms |
ClickBench: Total hot run time: 30.1 s |
017f777 to
2a22f94
Compare
|
run buildall |
TPC-H: Total hot run time: 39999 ms |
TPC-DS: Total hot run time: 172823 ms |
ClickBench: Total hot run time: 31.47 s |
573f05b to
7ba966a
Compare
|
run buildall |
TPC-H: Total hot run time: 39909 ms |
TPC-DS: Total hot run time: 173003 ms |
ClickBench: Total hot run time: 31.71 s |
|
run buildall |
TPC-H: Total hot run time: 39666 ms |
TPC-DS: Total hot run time: 173925 ms |
ClickBench: Total hot run time: 30.74 s |
|
run external |
|
PR approved by at least one committer and no changes requested. |
| ----hashJoin[INNER_JOIN] hashCondition=((col1 = ds.col1) and (col2 = ds.col2)) otherCondition=() | ||
| ------PhysicalProject | ||
| --------PhysicalOneRowRelation | ||
| ------filter((ds.col1 = 'abc') and (ds.col1 = ds.col1) and (ds.col2 = 'def') and (ds.col2 = ds.col2)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ds.col1 = ds.col1 is another bug in infer fiter?
This pr add pull up literal when infer predicates, we can infer
tmp.col1='abc' and tmp.col2 = 'def' from subquery tmp, pull up to inner
join, and combined with join on condition, we can infer ds.col1='abc'
and ds.col2='def'
select
*
from
(
select
tmp.col1,
tmp.col2
from
(
select
'abc' as col1,
'def' as col2
from
test_pull_up_predicate_literal
) tmp
inner join test_pull_up_predicate_literal ds
on tmp.col1 = ds.col1 and tmp.col2 = ds.col2
) t
where col1 = 'abc' and col2 = 'def';
---------
Co-authored-by: feiniaofeiafei <moailing@selectdb.com>
This pr add pull up literal when infer predicates, we can infer
tmp.col1='abc' and tmp.col2 = 'def' from subquery tmp, pull up to inner
join, and combined with join on condition, we can infer ds.col1='abc'
and ds.col2='def'
select
*
from
(
select
tmp.col1,
tmp.col2
from
(
select
'abc' as col1,
'def' as col2
from
test_pull_up_predicate_literal
) tmp
inner join test_pull_up_predicate_literal ds
on tmp.col1 = ds.col1 and tmp.col2 = ds.col2
) t
where col1 = 'abc' and col2 = 'def';
---------
Co-authored-by: feiniaofeiafei <moailing@selectdb.com>
This pr add pull up literal when infer predicates, we can infer tmp.col1='abc' and tmp.col2 = 'def' from subquery tmp, pull up to inner join, and combined with join on condition, we can infer ds.col1='abc' and ds.col2='def'