-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fd31dd5
commit 768ac84
Showing
1 changed file
with
0 additions
and
35 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 |
---|---|---|
|
@@ -399,34 +399,6 @@ | |
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"logicalId": { | ||
"account": "[email protected]", | ||
"name": "demo_db.metaphor.churn_region_agg", | ||
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"logicalId": { | ||
"account": "[email protected]", | ||
"name": "demo_db.metaphor.modular_campaigns", | ||
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"logicalId": { | ||
"account": "[email protected]", | ||
"name": "demo_db.metaphor.subscriptions_growth", | ||
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"logicalId": { | ||
"account": "[email protected]", | ||
"name": "demo_db.metaphor.subscriptions_v2", | ||
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"documentation": { | ||
"datasetDocumentations": [], | ||
|
@@ -454,13 +426,6 @@ | |
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"logicalId": { | ||
"account": "[email protected]", | ||
"name": "acme.ride_share.cleaned_bike_rides", | ||
"platform": "SNOWFLAKE" | ||
} | ||
}, | ||
{ | ||
"dbtModel": { | ||
"compiledSql": "\\n\\nwith\\n\\ncustomers as (\\n\\n select * from acme.jaffle_shop.stg_customers\\n\\n),\\n\\norders_mart as (\\n\\n select * from acme.jaffle_shop.orders\\n\\n),\\n\\norder_items_mart as (\\n\\n select * from acme.jaffle_shop.order_items\\n),\\n\\norder_summary as (\\n\\n select\\n customer_id,\\n\\n count(distinct om.order_id) as count_lifetime_orders,\\n count(distinct om.order_id) > 1 as is_repeat_buyer,\\n min(om.ordered_at) as first_ordered_at,\\n max(om.ordered_at) as last_ordered_at,\\n sum(oi.subtotal) as lifetime_spend_pretax,\\n sum(om.order_total) as lifetime_spend\\n\\n from orders_mart om\\n \\n left join order_items_mart oi on om.order_id = oi.order_id\\n \\n group by 1\\n\\n),\\n\\njoined as (\\n\\n select\\n customers.*,\\n order_summary.count_lifetime_orders,\\n order_summary.first_ordered_at,\\n order_summary.last_ordered_at,\\n order_summary.lifetime_spend_pretax,\\n order_summary.lifetime_spend,\\n\\n case\\n when order_summary.is_repeat_buyer then 'returning'\\n else 'new'\\n end as customer_type\\n\\n from customers\\n\\n left join order_summary\\n on customers.customer_id = order_summary.customer_id\\n\\n)\\n\\nselect * from joined", | ||
|