Skip to content

Commit 81904ff

Browse files
small change
1 parent 91eb52d commit 81904ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dbt/models/marts/misc/dim_ambassador_events.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ select
5454
end
5555
end as event_type,
5656
coalesce(to_timestamp(eis.event_date, 'YYYY-MM-DD HH24:MI:SS'), date_trunc('day', asm.section_created_dt)) as event_date,
57-
eis.total_participants as survey_total_participants,
58-
eis.num_pre_enrollment as survey_num_pre_enrollment,
59-
eis.num_post_enrollment as survey_num_post_enrollment,
57+
cast(eis.total_participants as int) as survey_total_participants,
58+
cast(eis.num_pre_enrollment as int) as survey_num_pre_enrollment,
59+
cast(eis.num_post_enrollment as int) as survey_num_post_enrollment,
6060
case
6161
when eis.num_pre_enrollment is not null and eis.num_post_enrollment is not null
6262
then 1

0 commit comments

Comments
 (0)