opt: extra filters add to lookup join ON condition when derive FK equalities #101844
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-sql-queries
SQL Queries Team
In #90599 and 0cd8b49, we added equality conditions derived from FK constraints and uniqueness constraints. These equality conditions are unnecessarily added to the lookup join ON conditions in some cases. For example:
Notice the synthesized filters at the bottom,
c.r:5 = p.r:1
, which are unnecessary.Jira issue: CRDB-27156
The text was updated successfully, but these errors were encountered: