In the process of hunting where metadata gets lots, I found a flow that might actually be a big culprit of why things don't work: if you make a native question look like a GUI question and then transform this question into a model, Metabase will treat this question as a GUI one, but without any metadata on it
To Reproduce
1) new native question -> select * from people
2) click on "explore results", then transform it into a model
3) try to map the state field to the actual state field that exists on the table, you can't
... now:
1) new native question -> select * from people
2) transform this into a model
3) see that the field now can be mapped to the state field in the table
Expected behavior
We should know that the query is a native one and offer the metadata mapping
Logs
NA
Information about your Metabase installation
I think it has always been like that
Severity
P1
Additional context
This might be a big reason why we lose Metadata and we don't know why, it might be that the users made a SQL question and masked it as a GUI one, and then we "believe" that metadata should be there as it seems like a normal GUI question
Describe the bug
In the process of hunting where metadata gets lots, I found a flow that might actually be a big culprit of why things don't work: if you make a native question look like a GUI question and then transform this question into a model, Metabase will treat this question as a GUI one, but without any metadata on it
To Reproduce
1) new native question -> select * from people 2) click on "explore results", then transform it into a model 3) try to map the state field to the actual state field that exists on the table, you can't
![image](https://github.com/metabase/metabase/assets/1711649/695564be-e5ea-4e9d-91d4-60726df5196b)
... now: 1) new native question -> select * from people 2) transform this into a model 3) see that the field now can be mapped to the state field in the table
![image](https://github.com/metabase/metabase/assets/1711649/325f6cd7-83cb-4a34-9ee9-27e65f3d135d)
Expected behavior
We should know that the query is a native one and offer the metadata mapping
Logs
NA
Information about your Metabase installation
Severity
P1
Additional context
This might be a big reason why we lose Metadata and we don't know why, it might be that the users made a SQL question and masked it as a GUI one, and then we "believe" that metadata should be there as it seems like a normal GUI question