It appears that the code to pull exposures from native queries is unable to recognize model names when they're qualified.
I'd expect the below metabase query to generate an exposure dependent on my_model, but it doesn't.
select * from db.schema.my_model
I think the bug is that the regex used to find from and join clauses doesn't allow for . or " characters, despite the subsequent code appearing to account for those cases.
I'd propose that the regex should instead allow . and " characters.
It appears that the code to pull exposures from native queries is unable to recognize model names when they're qualified.
I'd expect the below metabase query to generate an exposure dependent on
my_model
, but it doesn't.I think the bug is that the regex used to find
from
andjoin
clauses doesn't allow for.
or"
characters, despite the subsequent code appearing to account for those cases.I'd propose that the regex should instead allow
.
and"
characters.