For a project involving a data catalog, we’re looking at the Looker API to retrieve definitions, etc. We want to connect this to the table names in the data warehouse.
My question has been asked a number of times and the response was usually: “Parse the files from the git repository”, but it would be great to add the capability to the API. A question like this one: https://www.googlecloudcommunity.com/gc/Developing-Applications/Looker-API-for-lookml-views/m-p/574170
The only attribute we’re interested in is the “sql_table_name” one for a view. We don’t care much about the rest of the view definition for now.
So maybe this should be treated as a feature request. My findings so far:
The “Get LookML Model Explore” API contains both the view_name and the sql_table_name for the base view in the explore. So that can be used. But the “sql_table_name” for the joins that are mentioned is always empty. That’s a real bummer, because just because those attributes are missing, there’s a lot of complication to handle: git clone/checkout, git authentication, caching the project files, etc.
- Can someone look into whether the sql_table_name in the joins should be populated, so this is essentially treated as a bug?
- It would be very useful to add a “get_all_views” API call that returns the actual view definitions. This would decomplicate integrating with Looker and return this essential piece of information.
Thanks!