Open bshepherdson opened 1 year ago
Can still reproduce using the steps from the descriptions. Screenshots from master
. The column coming from the data source; but Lib.displayInfo
returns selected
for both columns.
removing from the board since this will be tackled as part of #36185
Describe the bug
When a nested query has an explicit join in the original/inner query, and implicit join of the same table in the second/outer query, the returned metadata treats all columns from the explicit join as coming from the implicit join.
These should be kept separate.
To Reproduce
Products -> Category
.Product -> EAN
or another field via implicit join.Expected behavior
These two different joins are kept separate by the QP.
Product -> Category
is still offered as an implicit join.Logs
No response
Information about your Metabase installation
Severity
Trivial
Additional context
You can tell the two sources apart in the UI because the explicitly joined field is supposed to be
Products -> Category
(named based on theProducts
table), while the implicitly joined field isProduct -> EAN
(named based onOrders.PRODUCT_ID
).Before adding the implicit join, it renders as
Products -> Category
; whereas with the implicit join it renders asProduct -> Category
and the difference is visible in thecols
in the response as well.