-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[daggy-u- [dbt] - Minor corrections (#20103)
## Summary & Motivation ## How I Tested These Changes --------- Co-authored-by: Tim Castillo <[email protected]>
- Loading branch information
1 parent
4277064
commit 1f824b5
Showing
7 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...agster-university/pages/dagster-dbt/lesson-5/coding-practice-grouping-models.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: 'Practice: Grouping dbt models by layer' | ||
module: 'dagster_essentials' | ||
lesson: '5' | ||
--- | ||
|
||
# Practice: Grouping dbt models by layer | ||
|
||
Override the `get_group_name` method in your `CustomizedDagsterDbtTranslator` to group each dbt model by their layer (`marts` and `staging`). | ||
|
||
**Hint:** `dbt_resource_props` | ||
|
||
--- | ||
|
||
## Check your work | ||
|
||
The method you built should look similar to the following code. Click **View answer** to view it. | ||
|
||
**If there are differences**, compare what you wrote to the code below and change them, as this method will be used as-is in future lessons. | ||
|
||
```python {% obfuscated="true" %} | ||
@classmethod | ||
def get_group_name(cls, dbt_resource_props): | ||
return dbt_resource_props["fqn"][1] | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters