Skip to content

Conversation

@englefly
Copy link
Contributor

@englefly englefly commented Jun 16, 2023

Proposed changes

in hash join condition, some equals are trustable, some are not.
an equal is trustable if one side is almost unique, like primary key. for such equal condition we could estimate more accurate.
the problem is in rewriten q20, the are 2 equal condition, one is trustable, another is not. But we treat both of them as trustable.

Test result:
on tpch100, from 2.2 sec to 0.44 sec
no impact on tpch other queries
no performance impact on tpcds queries

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

@englefly
Copy link
Contributor Author

run buildall

@yiguolei
Copy link
Contributor

wow

@englefly
Copy link
Contributor Author

run buildall

@morrySnow morrySnow changed the title [improve](Nereids)tpch q20 rewrite sql improvement [opt](Nereids) update join cost model Jun 19, 2023
@morrySnow morrySnow changed the title [opt](Nereids) update join cost model [opt](Nereids) update join stats derive Jun 19, 2023
@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Jun 19, 2023
@github-actions
Copy link
Contributor

PR approved by at least one committer and no changes requested.

@github-actions
Copy link
Contributor

PR approved by anyone and no changes requested.

@morrySnow
Copy link
Contributor

please add more detail about this PR in commit msg

@englefly englefly merged commit f20ef16 into apache:master Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/nereids dev/2.0-beta-merged kind/test reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants