diff --git a/macros/sql/groupby.sql b/macros/sql/groupby.sql index 68a68cf2..3a0e80e8 100644 --- a/macros/sql/groupby.sql +++ b/macros/sql/groupby.sql @@ -4,8 +4,6 @@ {%- macro default__group_by(n) -%} - group by {% for i in range(1, n + 1) -%} - {{ i }}{{ ',' if not loop.last }} - {%- endfor -%} + group by {{ range(1, n + 1) | join(',') }} {%- endmacro -%}