8000 Merge Join's row count estimation doesn't consider the case that the join key degenerates to other condition · Issue #57691 · pingcap/tidb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
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

Merge Join's row count estimation doesn't consider the case that the join key degenerates to other condition #57691

Open
winoros opened this issue Nov 25, 2024 · 0 comments
Labels
sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.

Comments

@winoros
Copy link
Member
winoros commented Nov 25, 2024

Enhancement

For example, if we have table t(a int, b int, key a). And the SQL select ... from t t1 join t t2 on t1.a=t2.a and t1.b=t1.b. To use merge join, we'll only regard a as the join key and the t1.b=t2.b will become a normal filter after we finish the join key matching.
Image
Image

But, from the picture, you can see that the row count estimation and the cost calculation don't consider such a case.

@winoros winoros added sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement. labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/planner SIG: Planner type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

No branches or pull requests

1 participant
0