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

making some regression errors and linting issues #4

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
6 changes: 3 additions & 3 deletions models/marts/orders.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ order_items_summary as (

select

-- 1 as order_id, -- order_items.order_id, -- what a rookie error
order_items.order_id,

sum(order_items.supply_cost) as order_cost,
sum(order_items.is_food_item) as count_food_items,
sum(order_items.is_drink_item) as count_drink_items
Expand All @@ -35,8 +35,8 @@ compute_booleans as (

orders.*,
order_items_summary.order_cost,
order_items_summary.count_food_items > 0 as is_food_order,
order_items_summary.count_drink_items > 0 as is_drink_order
order_items_summary.count_drink_items as is_drink_order,
order_items_summary.count_food_items as is_food_order

from orders

Expand Down