diff --git a/dbt_project/target/compiled/dbt_project/models/analytics/company_stats.sql b/dbt_project/target/compiled/dbt_project/models/analytics/company_stats.sql deleted file mode 100644 index e2cfbf38..00000000 --- a/dbt_project/target/compiled/dbt_project/models/analytics/company_stats.sql +++ /dev/null @@ -1,7 +0,0 @@ -select - date, - company, - count(*) as n_orders, - sum(order_total) as total_revenue -from DEMO_DB2.analytics.orders_augmented -group by 1, 2 \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/analytics/daily_order_summary.sql b/dbt_project/target/compiled/dbt_project/models/analytics/daily_order_summary.sql deleted file mode 100644 index 7d5dc18f..00000000 --- a/dbt_project/target/compiled/dbt_project/models/analytics/daily_order_summary.sql +++ /dev/null @@ -1,5 +0,0 @@ -select - date as order_date, - n_orders as num_orders -from DEMO_DB2.analytics.order_stats --- this doesn't really do anything \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/analytics/order_stats.sql b/dbt_project/target/compiled/dbt_project/models/analytics/order_stats.sql deleted file mode 100644 index 6dc269f0..00000000 --- a/dbt_project/target/compiled/dbt_project/models/analytics/order_stats.sql +++ /dev/null @@ -1,6 +0,0 @@ -select - date, - count(*) as n_orders, - sum(order_total) as total_revenue -from DEMO_DB2.analytics.orders_augmented -group by 1 \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/analytics/orders_augmented.sql b/dbt_project/target/compiled/dbt_project/models/analytics/orders_augmented.sql deleted file mode 100644 index 0b83008d..00000000 --- a/dbt_project/target/compiled/dbt_project/models/analytics/orders_augmented.sql +++ /dev/null @@ -1,6 +0,0 @@ -select - o.*, - u.company -from - DEMO_DB2.analytics.orders_cleaned o left join - DEMO_DB2.analytics.users_cleaned u on (o.user_id = u.user_id) \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/analytics/sku_stats.sql b/dbt_project/target/compiled/dbt_project/models/analytics/sku_stats.sql deleted file mode 100644 index dddab57b..00000000 --- a/dbt_project/target/compiled/dbt_project/models/analytics/sku_stats.sql +++ /dev/null @@ -1,7 +0,0 @@ -select - date, - sku, - count(*) as n_orders, - sum(order_total) as total_revenue -from DEMO_DB2.analytics.orders_augmented -group by 1, 2 \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/cleaned/orders_cleaned.sql b/dbt_project/target/compiled/dbt_project/models/cleaned/orders_cleaned.sql deleted file mode 100644 index 557a5bba..00000000 --- a/dbt_project/target/compiled/dbt_project/models/cleaned/orders_cleaned.sql +++ /dev/null @@ -1,9 +0,0 @@ -select - user_id, - quantity, - purchase_price, - sku, - dt, - dt as date, - quantity * purchase_price as order_total -from DEMO_DB2.raw_data.orders \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/cleaned/users_cleaned.sql b/dbt_project/target/compiled/dbt_project/models/cleaned/users_cleaned.sql deleted file mode 100644 index 3118ef3d..00000000 --- a/dbt_project/target/compiled/dbt_project/models/cleaned/users_cleaned.sql +++ /dev/null @@ -1,5 +0,0 @@ -select - user_id, - company -from DEMO_DB2.raw_data.users -where not is_test_user \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/forecasting/all_orders.sql b/dbt_project/target/compiled/dbt_project/models/forecasting/all_orders.sql deleted file mode 100644 index e558d6a4..00000000 --- a/dbt_project/target/compiled/dbt_project/models/forecasting/all_orders.sql +++ /dev/null @@ -1 +0,0 @@ -select order_date, num_orders from DEMO_DB2.forecasting.predicted_orders \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/marketing/company_perf.sql b/dbt_project/target/compiled/dbt_project/models/marketing/company_perf.sql deleted file mode 100644 index 207bd976..00000000 --- a/dbt_project/target/compiled/dbt_project/models/marketing/company_perf.sql +++ /dev/null @@ -1,6 +0,0 @@ -select - company, - sum(n_orders) as n_orders, - sum(total_revenue) as total_revenue -from DEMO_DB2.analytics.company_stats -group by 1 \ No newline at end of file diff --git a/dbt_project/target/compiled/dbt_project/models/marketing/top_users.sql b/dbt_project/target/compiled/dbt_project/models/marketing/top_users.sql deleted file mode 100644 index 228e6c93..00000000 --- a/dbt_project/target/compiled/dbt_project/models/marketing/top_users.sql +++ /dev/null @@ -1,8 +0,0 @@ -select - o.user_id, - sum(o.order_total) as total_revenue, - sum(o.order_total) / max(c.total_revenue) as pct_revenue -from - DEMO_DB2.analytics.orders_augmented o left join - DEMO_DB2.analytics.company_perf c on o.company = c.company -group by 1 \ No newline at end of file diff --git a/dbt_project/target/graph.gpickle b/dbt_project/target/graph.gpickle deleted file mode 100644 index 4b9addd9..00000000 Binary files a/dbt_project/target/graph.gpickle and /dev/null differ diff --git a/dbt_project/target/partial_parse.msgpack b/dbt_project/target/partial_parse.msgpack deleted file mode 100644 index db7af92d..00000000 Binary files a/dbt_project/target/partial_parse.msgpack and /dev/null differ diff --git a/dbt_project/target/run/dbt_project/models/analytics/company_stats.sql b/dbt_project/target/run/dbt_project/models/analytics/company_stats.sql deleted file mode 100644 index 926f2db7..00000000 --- a/dbt_project/target/run/dbt_project/models/analytics/company_stats.sql +++ /dev/null @@ -1,15 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.company_stats as - (select - date, - company, - count(*) as n_orders, - sum(order_total) as total_revenue -from DEMO_DB2.analytics.orders_augmented -group by 1, 2 - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/analytics/daily_order_summary.sql b/dbt_project/target/run/dbt_project/models/analytics/daily_order_summary.sql deleted file mode 100644 index b95d9129..00000000 --- a/dbt_project/target/run/dbt_project/models/analytics/daily_order_summary.sql +++ /dev/null @@ -1,13 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.daily_order_summary as - (select - date as order_date, - n_orders as num_orders -from DEMO_DB2.analytics.order_stats --- this doesn't really do anything - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/analytics/order_stats.sql b/dbt_project/target/run/dbt_project/models/analytics/order_stats.sql deleted file mode 100644 index e30e6107..00000000 --- a/dbt_project/target/run/dbt_project/models/analytics/order_stats.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.order_stats as - (select - date, - count(*) as n_orders, - sum(order_total) as total_revenue -from DEMO_DB2.analytics.orders_augmented -group by 1 - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/analytics/orders_augmented.sql b/dbt_project/target/run/dbt_project/models/analytics/orders_augmented.sql deleted file mode 100644 index b5b266d7..00000000 --- a/dbt_project/target/run/dbt_project/models/analytics/orders_augmented.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.orders_augmented as - (select - o.*, - u.company -from - DEMO_DB2.analytics.orders_cleaned o left join - DEMO_DB2.analytics.users_cleaned u on (o.user_id = u.user_id) - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/analytics/sku_stats.sql b/dbt_project/target/run/dbt_project/models/analytics/sku_stats.sql deleted file mode 100644 index 25313a68..00000000 --- a/dbt_project/target/run/dbt_project/models/analytics/sku_stats.sql +++ /dev/null @@ -1,15 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.sku_stats as - (select - date, - sku, - count(*) as n_orders, - sum(order_total) as total_revenue -from DEMO_DB2.analytics.orders_augmented -group by 1, 2 - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/cleaned/orders_cleaned.sql b/dbt_project/target/run/dbt_project/models/cleaned/orders_cleaned.sql deleted file mode 100644 index 183be722..00000000 --- a/dbt_project/target/run/dbt_project/models/cleaned/orders_cleaned.sql +++ /dev/null @@ -1,17 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.orders_cleaned as - (select - user_id, - quantity, - purchase_price, - sku, - dt, - dt as date, - quantity * purchase_price as order_total -from DEMO_DB2.raw_data.orders - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/cleaned/users_cleaned.sql b/dbt_project/target/run/dbt_project/models/cleaned/users_cleaned.sql deleted file mode 100644 index 06299816..00000000 --- a/dbt_project/target/run/dbt_project/models/cleaned/users_cleaned.sql +++ /dev/null @@ -1,13 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.users_cleaned as - (select - user_id, - company -from DEMO_DB2.raw_data.users -where not is_test_user - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/forecasting/all_orders.sql b/dbt_project/target/run/dbt_project/models/forecasting/all_orders.sql deleted file mode 100644 index 5e57a55d..00000000 --- a/dbt_project/target/run/dbt_project/models/forecasting/all_orders.sql +++ /dev/null @@ -1,9 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.all_orders as - (select order_date, num_orders from DEMO_DB2.forecasting.predicted_orders - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/marketing/company_perf.sql b/dbt_project/target/run/dbt_project/models/marketing/company_perf.sql deleted file mode 100644 index d8f4937f..00000000 --- a/dbt_project/target/run/dbt_project/models/marketing/company_perf.sql +++ /dev/null @@ -1,14 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.company_perf as - (select - company, - sum(n_orders) as n_orders, - sum(total_revenue) as total_revenue -from DEMO_DB2.analytics.company_stats -group by 1 - ); - - \ No newline at end of file diff --git a/dbt_project/target/run/dbt_project/models/marketing/top_users.sql b/dbt_project/target/run/dbt_project/models/marketing/top_users.sql deleted file mode 100644 index 3be96575..00000000 --- a/dbt_project/target/run/dbt_project/models/marketing/top_users.sql +++ /dev/null @@ -1,16 +0,0 @@ - - - - - create or replace transient table DEMO_DB2.analytics.top_users as - (select - o.user_id, - sum(o.order_total) as total_revenue, - sum(o.order_total) / max(c.total_revenue) as pct_revenue -from - DEMO_DB2.analytics.orders_augmented o left join - DEMO_DB2.analytics.company_perf c on o.company = c.company -group by 1 - ); - - \ No newline at end of file diff --git a/dbt_project/target/run_results.json b/dbt_project/target/run_results.json deleted file mode 100644 index 568447ac..00000000 --- a/dbt_project/target/run_results.json +++ /dev/null @@ -1 +0,0 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2022-10-27T20:33:02.330529Z", "invocation_id": "7c96b5d3-2e3d-42cd-aa19-b405e2a28faf", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-27T20:33:00.669377Z", "completed_at": "2022-10-27T20:33:00.671845Z"}, {"name": "execute", "started_at": "2022-10-27T20:33:00.672071Z", "completed_at": "2022-10-27T20:33:02.046563Z"}], "thread_id": "Thread-1 (worker)", "execution_time": 1.6594769954681396, "adapter_response": {"_message": "SUCCESS 1", "code": "SUCCESS", "rows_affected": 1, "query_id": "01a7ea51-0605-b877-0000-441d027ff5ee"}, "message": "SUCCESS 1", "failures": null, "unique_id": "model.dbt_project.all_orders"}], "elapsed_time": 4.683930158615112, "args": {"log_format": "json", "write_json": true, "use_colors": false, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/lopp/Projects/hooli-data-eng-pipelines/dbt_project/config", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "project_dir": "/Users/lopp/Projects/hooli-data-eng-pipelines/dbt_project", "target": "PROD", "select": ["dbt_project.forecasting.all_orders"], "which": "run", "rpc_method": "run", "indirect_selection": "eager"}} \ No newline at end of file