Unexpected Estimated Rows by INNER JOIN #38665
Labels
affects-5.1
This bug affects 5.1.x versions.
affects-5.2
This bug affects 5.2.x versions.
affects-5.3
This bug affects 5.3.x versions.
affects-5.4
This bug affects 5.4.x versions.
affects-6.1
fuzz/sqlancer
may-affects-4.0
This bug maybe affects 4.0.x versions.
may-affects-5.0
This bug maybe affects 5.0.x versions.
may-affects-6.0
may-affects-6.2
may-affects-6.3
severity/minor
sig/planner
SIG: Planner
type/bug
This issue is a bug.
Bug Report
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
I expect the second SELECT returns no more estimated rows than the first SELECT.
The query plan of the first SELECT:
The query plan of the second SELECT:
Both query plans have similar structure below HashJoin and exact the same number of estimated rows after the HashJoin. After that, applying the same
WHERE
clause incur different estimated rows.3. What did you see instead (Required)
The second SELECT returns more estimated rows than the first SELECT.
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: