Wrong suggested join condition when joining 2 models #41202
Labels
Priority:P3
Cosmetic bugs, minor bugs with a clear workaround
.Team/QueryProcessor
:hammer_and_wrench:
Type:Bug
Product defects
Milestone
There is a case where wrong join condition is suggested while joining 2 models. More context can be found in this slack thread. Steps to reproduce follow.
Add that database and use it as data source for next steps.
Now create model
Account model
from plain mbql query with sourceAccount
.Create model
Contact model
from plain mbql query with sourceContact
.Now create a new mbql query with source
Account model
.Attempt to join
Contact model
in query builder.Wrong join condition is suggested: only table
Organization
has columnaccount_id
. (Aside: both other tables have foreign keys to that table.)Screen of incorrect join condition:
The text was updated successfully, but these errors were encountered: