Skip to content

Commit

Permalink
feat: apply as_varchar to the variant macro
Browse files Browse the repository at this point in the history
  • Loading branch information
cverhoef committed Aug 5, 2022
1 parent c9f3fc7 commit f3c1bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/process_mining_tables/generate_variant.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Cases_with_variant_ID as (
Variant as (
select
Cases_with_variant_ID."Variant_ID",
concat('Variant ', row_number() over (order by count(Cases_with_variant_ID."Variant_ID") desc)) as "Variant"
concat({{ pm_utils.as_varchar('Variant ') }}, row_number() over (order by count(Cases_with_variant_ID."Variant_ID") desc)) as "Variant"
from Cases_with_variant_ID
group by Cases_with_variant_ID."Variant_ID"
),
Expand Down

0 comments on commit f3c1bf7

Please sign in to comment.