Closed malwaregarry closed 1 month ago
Hi @malwaregarry, please add branch-* labels to identify which branch(es) this C-bug affects.
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Hello, I am Blathers. I am here to help you get the issue triaged.
Hoot - a bug! Though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here.
I was unable to automatically find someone to ping.
If we have not gotten back to your issue within a few business days, you can try the following:
:owl: Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.
Hi @malwaregarry, similar to #131875, I'll close this one out since it isn't considered a bug. However, it does suggest another opportunity for a normalization rule, tracked here: #132328.
Describe the problem
RIGHT / LEFT OUTER JOIN should give us a larger table compared to INNER JOIN given the same ON condition.
However, the explain queries below for RIGHT OUTER JOIN returns an estimate lower than INNER JOIN
To Reproduce
What did you do? Describe in your own words.
Expected behavior The second query should return an estimate lower than the first query
Additional data / screenshots
Environment:
cockroach sql
Additional context Test case generated with SQLancer
Jira issue: CRDB-42639