From 6b72b431d1126f65b20d0c4408585feb2d6bc946 Mon Sep 17 00:00:00 2001 From: Pedro Sousa Date: Mon, 15 Jan 2024 09:54:31 +0000 Subject: [PATCH] Fix README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1e5e3b..b553889 100644 --- a/README.md +++ b/README.md @@ -656,11 +656,11 @@ FROM raw_financial_data ``` -You can ensure that revenue is rounded to two decimal places when testing `financial_model`, and your expectations are also rounded to five decimal places. This ensures that the test is precise and consistent. +You can ensure that `avg_revenue` is rounded to five decimal places when testing `financial_model`, and your expectations are also rounded to five decimal places. This ensures that the test is precise and consistent. ```Jinja {% set column_transformations = { - "revenue": "round(##column##, 5)" + "avg_revenue": "round(##column##, 5)" } %} {% call dbt_unit_testing.test('financial_model', options={"column_transformations": column_transformations}) %} @@ -672,7 +672,7 @@ You can ensure that revenue is rounded to two decimal places when testing `finan select 3.0 as revenue {% endcall %} {% call dbt_unit_testing.expect() %} - select 3.33333 as revenue + select 3.33333 as avg_revenue {% endcall %} {% endcall %} ```