metabase
metabase copied to clipboard
[BE] [QP] [Bug] Incorrect metadata for a native model column overriden to a FK
should allow drills on FK columns from dashboards E2E test fails because there is a mismatch between metadata in /api/table/card__:id/query_metadata and /api/card/:id. Run link
Actual:
-
semantic_typeof the overriden field inquery_metadatais null buttype/FKin/api/card/:id
Expected:
-
semantic_typeis the same in both endpoints -type/FKin this case
The issue is present in master, but since we moved some stuff to MBQL lib it started to cause issues because of https://github.com/metabase/metabase/blob/0633cd87702d085791aa73efd4a12b3a96127673/src/metabase/lib/card.cljc#L107