Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface Looker Explore prod/dev datasets in the SQL pane #76

Open
jilyat opened this issue Mar 7, 2024 · 0 comments
Open

Surface Looker Explore prod/dev datasets in the SQL pane #76

jilyat opened this issue Mar 7, 2024 · 0 comments

Comments

@jilyat
Copy link

jilyat commented Mar 7, 2024

Would it be possible to generate a customisable LookML line of code (specified in the droughty_project.yaml file) beneath each view in the _base.layer.lkml file, in this instance to enable custom prod and development datasets to be surfaced in the Looker Explore SQL pane?

_base.layer.lkml example

view: <data_warehouse_table_name> {
sql_table_name: `<gcp_project_id>.{{ _user_attributes['<user_attribute_analytics_data_warehouse>'] }}.<data_warehouse_table_name>` ;;

drought_project.yaml

lookml_dataset: sql_table_name: `<gcp_project_id>.{{ _user_attributes['<user_attribute_analytics_data_warehouse>'] }}.<data_warehouse_table_name>` ;;

This would enable users to investigate queries in the data warehouse UI if needed, or check if the user is querying against production or development data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant