-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1 This turned into pulling a sweater thread that unravelled some issues in the source data, so I had to dig in to quite a bit! This updates some issues in the source data seed files in addition to fixing logic.
- Loading branch information
1 parent
558fe27
commit 2447e1b
Showing
19 changed files
with
5,658 additions
and
5,621 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,11 @@ env | |
target/ | ||
dbt_packages/ | ||
logs/ | ||
profiles.yml | ||
|
||
.DS_Store | ||
|
||
.user.yml | ||
*.hurl | ||
|
||
.ruff_cache | ||
__pycache__ |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
{# A basic example for a project-wide macro to cast a column uniformly #} | ||
|
||
{% macro cents_to_dollars(column_name, precision=2) -%} | ||
({{ column_name }} / 100)::numeric(16, {{ precision }}) | ||
{% macro cents_to_dollars(column_name) -%} | ||
{{ return(adapter.dispatch('cents_to_dollars')(column_name)) }} | ||
{%- endmacro %} | ||
|
||
{% macro default__cents_to_dollars(column_name) -%} | ||
({{ column_name }} / 100)::numeric(16, 2) | ||
{%- endmacro %} | ||
|
||
{% macro bigquery__cents_to_dollars(column_name) %} | ||
round(cast(({{ column_name }} / 100) as numeric), 2) | ||
{% endmacro %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ order_supplies_summary as ( | |
|
||
select | ||
product_id, | ||
|
||
sum(supply_cost) as supply_cost | ||
|
||
from supplies | ||
|
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
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
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
packages: | ||
- package: dbt-labs/dbt_utils | ||
version: 1.1.1 | ||
- package: calogica/dbt_date | ||
version: 0.10.0 | ||
- package: dbt-labs/audit_helper | ||
version: 0.10.0 | ||
sha1_hash: ef1c92462efce413655c7e7cbfc1b093c132ef83 | ||
- package: dbt-labs/dbt_utils | ||
version: 1.1.1 | ||
- package: calogica/dbt_date | ||
version: 0.10.0 | ||
- package: dbt-labs/audit_helper | ||
version: 0.11.0 | ||
- package: calogica/dbt_expectations | ||
version: 0.10.3 | ||
sha1_hash: 04cccdda410558cb2751bfe1ee6c1f6f61b60776 |
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