Skip to content

Commit 271e9a3

Browse files
authored
Merge pull request #43 from dp2020-dev/blog_content
Adding lineage graph image
2 parents c17c1fb + db19775 commit 271e9a3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

_posts/2024-12-08-dbt-expectations.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,13 @@ layout: post
33
title: Using dbt expectations as part of a dbt build.
44
---
55

6-
<i> The objective of the blog post is to give a practical overview of the data transformation testing tool Great Expectations/dbt expectations. </i>
6+
<i> The objective of the blog post is to give a practical overview of the data transformation testing tool Great Expectations (specifically the open source version dbt expectations. </i>
77

88
### Why data testing?
99

10-
Having been involved in data transformations in the past (e.g. moving data from on prem to the Azure cloud) I'm aware of the potential complexity of ensuring the quality of data from source to target, verifying the transformations at each stage and maintaining data integrity.
10+
Having been involved in data transformations in the past (e.g. moving data from on prem to the Azure cloud) I'm aware of the potential complexity of ensuring the quality of data from multiple sources to target, verifying the transformations at each stage and maintaining data integrity.
1111

12-
Given
13-
14-
### Great Expectations
15-
16-
[Great Expectations.io](https://greatexpectations.io/) and its open source version [dbt expectations](https://github.com/calogica/dbt-expectations) are frameworks that enable automated tests to be embedded in ingestion/transformation pipelines.
12+
In the context of these data testing challenges, [Great Expectations.io](https://greatexpectations.io/) and its open source version [dbt expectations](https://github.com/calogica/dbt-expectations) are frameworks that enable automated tests to be embedded in ingestion/transformation pipelines.
1713

1814
<GE Image>
1915
![Great Expectations logo', December 2024](/images/gx_logo_horiz_color.png)
@@ -72,6 +68,12 @@ In a specific example, the failing sql code is run directly against the table (i
7268

7369
### Lineage Graph (Data Flow DAG)
7470

71+
In the sections above we've looked at practical tests in dbt expectations which can be embedded in the data transformation pipeline, they can also be featured in the 'lineage graph' alongside the source tables, dimension, fact tables etc. to show where and when the tests run, what table it relates to etc.
72+
73+
Provided the test in question is included in the schema.yml and has a description value, we can see it included on the lineage graph generated by dbt:
74+
75+
![dbt lineage graph](/images/dbt-dag-3.png)
76+
7577
Source data in green -> dependencies
7678

7779
Select what types of elements to include in the graph, refresh to only show selection

images/dbt-dag-3.png

250 KB
Loading

0 commit comments

Comments
 (0)