Skip to content

Commit c17c1fb

Browse files
authored
Merge pull request #42 from dp2020-dev/blog_content
dbt post continued.
2 parents 9bd68d6 + 276cfa0 commit c17c1fb

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Given
2121
This is a widely used tool in data engineering, and in order to try it out and evaluate this tool, I undertook the following Udemy course, the screenshots and material are based on this:
2222

2323
[The Complete dbt (Data Build Tool) Bootcamp:](https://www.udemy.com/course/complete-dbt-data-build-tool-bootcamp-zero-to-hero-learn-dbt)
24-
![Microsoft AI Fundamentals](/images/AI900.png)
24+
![dbt bootcamp](/images/dbtHeroUdemy.png)
2525

2626
This course covers the theory and practical application of a data project using snowflake as the data warehouse, and the open source version of dbt. What was particularly relevant for a tester are the sections covering dbt expectations<add link>. This post will explain at a high level what dbt expectations can do, how it can enable QA in a data ingestion/data transformation project rather than a hand on how to' guide.
2727

@@ -37,25 +37,25 @@ When the package is imported etc. the tests are written in the schema.yml file.
3737

3838
#### Basic Expectations:
3939

40-
<b>not_null:</b> Ensures that the column doesn't contain null values.
41-
<b>unique:</b> Verifies that all values in the column are distinct.
40+
<li>not_null: Ensures that the column doesn't contain null values.</li>
41+
<li>unique: Verifies that all values in the column are distinct.</li>
4242

4343
#### Relationship Expectations:
4444

45-
<b>relationships:</b> Checks if a foreign key relationship <b>exists between two columns in different models.
45+
</li>relationships: Checks if a foreign key relationship exists between two columns in different models.</li>
4646

4747
#### Value-Based Expectations:
4848

49-
<b>accepted_values:</b> Ensures that the column only contains specific values from a predefined list.
50-
<b>positive_value:</b> Verifies that the column values are positive numbers.
49+
<li>accepted_values: Ensures that the column only contains specific values from a predefined list.</li>
50+
<li>positive_value:</b> Verifies that the column values are positive numbers.</li>
5151

5252
#### Statistical Expectations:
5353

54-
#### dbt_expectations. <b>expect_table_row_count_to_equal_other_table:</b> Compares the row count of two tables.
54+
<li>dbt_expectations. expect_table_row_count_to_equal_other_table: Compares the row count of two tables.</li>
5555

56-
<b>dbt_expectations.expect_column_values_to_be_of_type: </b>Checks the data type of a column.
57-
<b>dbt_expectations.</b>expect_column_quantile_values_to_be_between: Verifies that quantile values fall within a specific range.
58-
<b>dbt_expectations.expect_column_max_to_be_between:</b> Ensures that the maximum value of a column is within a certain range.
56+
</li>dbt_expectations.expect_column_values_to_be_of_type: Checks the data type of a column.</li>
57+
<li>dbt_expectations.expect_column_quantile_values_to_be_between: Verifies that quantile values fall within a specific range.</li>
58+
<li>dbt_expectations.expect_column_max_to_be_between: Ensures that the maximum value of a column is within a certain range.</li>
5959

6060
#### Example test:
6161

images/dbtHeroUdemy.png

132 KB
Loading

0 commit comments

Comments
 (0)