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

Amrutha97 patch 1 #67

Closed
wants to merge 3 commits into from
Closed
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ env
target/
dbt_packages/
logs/
jaffle-data/
profiles.yml

.DS_Store
Expand Down
10 changes: 5 additions & 5 deletions dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ name: "jaffle_shop"
version: "3.0.0"
require-dbt-version: ">=1.5.0"

dbt-cloud:
project-id: 275557 # Put your project id here
#dbt-cloud:
# project-id: 275557 # Put your project id here

profile: default # Put your profile here
profile: ds-jaffle-shop # Put your profile here

model-paths: ["models"]
analysis-paths: ["analyses"]
test-paths: ["data-tests"]
seed-paths: ["seeds"]
seed-paths: ["seeds", "jaffle-data"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]

Expand All @@ -26,7 +26,7 @@ vars:

seeds:
jaffle_shop:
+schema: raw
+schema: ds_jaffle_shop

models:
jaffle_shop:
Expand Down
936 changes: 0 additions & 936 deletions jaffle-data/raw_customers.csv

This file was deleted.

90,901 changes: 0 additions & 90,901 deletions jaffle-data/raw_items.csv

This file was deleted.

61,949 changes: 0 additions & 61,949 deletions jaffle-data/raw_orders.csv

This file was deleted.

11 changes: 0 additions & 11 deletions jaffle-data/raw_products.csv

This file was deleted.

7 changes: 0 additions & 7 deletions jaffle-data/raw_stores.csv

This file was deleted.

66 changes: 0 additions & 66 deletions jaffle-data/raw_supplies.csv

This file was deleted.

4 changes: 0 additions & 4 deletions macros/cents_to_dollars.sql
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,3 @@
{% macro bigquery__cents_to_dollars(column_name) %}
round(cast(({{ column_name }} / 100) as numeric), 2)
{% endmacro %}

{% macro fabric__cents_to_dollars(column_name) %}
cast({{ column_name }} / 100 as numeric(16,2))
{% endmacro %}
2 changes: 1 addition & 1 deletion models/staging/__sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2

sources:
- name: ecom
schema: raw
schema: ds_jaffle_shop
description: E-commerce data for the Jaffle Shop
freshness:
warn_after:
Expand Down
6 changes: 3 additions & 3 deletions package-lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ packages:
version: 1.1.1
- package: calogica/dbt_date
version: 0.10.0
- package: dbt-labs/audit_helper
version: 0.12.0
sha1_hash: 974021e878d1894c35a21fb44fb0b6bd04f07078
- git: https://github.com/dbt-labs/dbt-audit-helper.git
revision: 6499107b5960d7c6140a8a44345034e6eb7b336d
sha1_hash: da0d5b1d5a48f6504805f6b1d5a0b2f9f233f34c