[RFC] Integrating Looker projects with Dagster #23479
rexledesma
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
As part of our
dagster==1.8.0
release on August 8, 2024, we’re releasingdagster-looker==0.24.0
to support creating Looker views, explores, and dashboards as external assets.We would like to use this document to gather feedback and answer questions about the new APIs. If you have any comments or use cases that are not addressed, please participate in the discussion!
The main interface we are releasing as part of this release is:
build_looker_asset_specs
, a function for users to define Dagster asset specs from their Looker project.DagsterLookerTranslator
, a class for customizing the metadata of your Dagster asset specs.Requirements
dagster-looker>=0.24.0
, which is scheduled to be released on August 8, 2024.dagster-looker
, your Looker project must be represented in LookML and backed by git.Use cases
Examples
In all examples, we use the Looker
marketing_demo
project as a sample project to represent Looker views, explores, and dashboards.We also use the following folder structure locally:
Getting started
Here, we load the Looker project as a set of Dagster assets using
build_looker_asset_specs
.After running
dagster dev
, we can visualize the Dagster assets.Customizing the metadata
Here, we customize the metadata of the looker assets we just loaded. To do this, we subclass
DagsterLookerTranslator
and implement the method of the metadata we want to customize. In this example, we set the Looker structure type (e.g. view, explore, dashboard) as the asset’s group name.Next steps
Again, we want to use this document to gather feedback and answer questions about the new APIs. If you have any comments or use cases that are not addressed, please participate in the discussion!
Beta Was this translation helpful? Give feedback.
All reactions