Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dopoku ro demo #24

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ vars:

models:
jaffle_shop:
+materialized: view
marts:
+materialized: table
staging:
+schema: "test_dopoku"
+materialized: view
11 changes: 11 additions & 0 deletions models/marts/_marts__models.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2

models:
- name: dim_customers
description: This is a final model that contains more details about the customer entity
columns:
- name: customer_id
data_tests:
- unique
- not_null

4 changes: 2 additions & 2 deletions models/staging/jaffle_shop/_sources_jaffle_shop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ sources:
- name: products
- name: orders
freshness: # default freshness
warn_after: {count: 15, period: day}
error_after: {count: 30, period: minute}
warn_after: {count: 6, period: hour}
error_after: {count: 12, period: hour}
loaded_at_field: _etl_loaded_at


Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ source as (
),

renamed as (

-- Add a comment for CI demo
select
id as customer_id,
first_name,
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stripe/stg_stripe__payment.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ renamed as (
orderid as order_id,
paymentmethod as payment_method,
status,
_batched_at
_batched_at::date


from source
Expand Down