Skip to content

Commit

Permalink
Merge pull request #16 from dbt-labs/bobby_dev_5_30_23
Browse files Browse the repository at this point in the history
Update to use new v2 dataset
  • Loading branch information
sfc-gh-jkranzler authored Jun 1, 2023
2 parents 3642632 + d12518a commit a82e746
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions models/ml/training_base/features_sales_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def model(dbt, session):
)
)

# Filter out 'extra' items that have no cost
df_base = df_base.filter(df_base.menu_item_id < 1000)

# Aggregate
df_base = df_base.group_by(order_features).agg(F.sum(*target).alias("quantity"))

Expand Down
2 changes: 1 addition & 1 deletion models/staging/customer/customer__sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

sources:
- name: customer
database: frostbyte_tasty_bytes
database: frostbyte_tasty_bytes_v2
schema: raw_customer
tables:
- name: customer_loyalty
Expand Down
1 change: 0 additions & 1 deletion models/staging/pos/pos__models.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ models:
- name: franchise_id
description: primary key for franchise model
tests:
- unique
- not_null
- name: first_name
description: first name of the owner
Expand Down
2 changes: 1 addition & 1 deletion models/staging/pos/pos__sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

sources:
- name: pos
database: frostbyte_tasty_bytes
database: frostbyte_tasty_bytes_v2
schema: raw_pos
tables:
- name: menu
Expand Down
2 changes: 1 addition & 1 deletion models/staging/supply_chain/supply_chain__sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

sources:
- name: supply_chain
database: frostbyte_tasty_bytes
database: frostbyte_tasty_bytes_v2
schema: raw_supply_chain
tables:
- name: distribution_detail
Expand Down

0 comments on commit a82e746

Please sign in to comment.