Skip to content

Commit

Permalink
(BSR) fix(sql): unquote date part, remove trailing semicolon (#3760)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbusson-pass committed Jan 29, 2025
1 parent 51025a4 commit 174fb91
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ with
select
aa.active_month,
aa.user_department_code as department_code,
date(date_trunc(ud.user_birth_date, 'month')) as born_date,
date(date_trunc(ud.user_birth_date, month)) as born_date,
count(distinct ud.user_id) as total_users
from {{ ref("aggregated_monthly_user_used_booking_activity") }} as aa
inner join {{ ref("mrt_global__user") }} as ud on aa.user_id = ud.user_id
group by
aa.active_month,
aa.user_department_code,
date(date_trunc(ud.user_birth_date, 'month'))
date(date_trunc(ud.user_birth_date, month))
)

select
Expand All @@ -63,4 +63,3 @@ left join
on pop.active_month = ub.active_month
and pop.born_date = ub.born_date
and pop.department_code = ub.department_code
;

0 comments on commit 174fb91

Please sign in to comment.