Skip to content

Commit fd15dfd

Browse files
author
Dan Eisenberg
committed
Change sql and add column
1 parent a1ba6cb commit fd15dfd

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

.DS_Store

6 KB
Binary file not shown.

logs/dbt.log

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
3+
============================== 11:55:45.922809 | 0c694b35-a69b-49ed-b4bf-149e64c22bab ==============================
4+
11:55:45.922809 [info ] [MainThread]: Running with dbt=1.5.11
5+
11:55:45.927700 [debug] [MainThread]: running dbt with arguments {'printer_width': '80', 'indirect_selection': 'eager', 'log_cache_events': 'False', 'write_json': 'True', 'partial_parse': 'True', 'cache_selected_only': 'False', 'profiles_dir': '/Users/dse/.dbt', 'fail_fast': 'False', 'debug': 'False', 'log_path': '/Users/dse/code/dbt-cloud-example/logs', 'warn_error': 'None', 'version_check': 'True', 'use_colors': 'True', 'use_experimental_parser': 'False', 'no_print': 'None', 'quiet': 'False', 'log_format': 'default', 'introspect': 'True', 'warn_error_options': 'WarnErrorOptions(include=[], exclude=[])', 'static_parser': 'True', 'target_path': 'None', 'send_anonymous_usage_stats': 'False'}
6+
11:55:45.945500 [info ] [MainThread]: Warning: No packages were found in packages.yml
7+
11:55:45.946572 [debug] [MainThread]: Command `cli deps` succeeded at 11:55:45.946380 after 0.09 seconds
8+
11:55:45.947009 [debug] [MainThread]: Flushing usage events

models/_sales.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ models:
138138
- name: referral_source
139139
- name: cook_id
140140
- name: location_id
141+
- name: order_value_bucket
141142
meta:
142143
hashboard:
143144
alias: orders

models/orders.sql

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
select
1+
select
22
timestamp,
33
order_id as id,
44
payment_method,
55
delivery,
66
type,
77
customer_id,
88
sum(item_price) as total_order_value,
9+
item_price > 10 ? 'high' : 'low' as order_value_bucket,
910
any_value(loyalty_status) as loyalty_status,
1011
any_value(discount_code) as discount_code,
1112
any_value(feedback_rating) as feedback_rating,

0 commit comments

Comments
 (0)