Skip to content

Commit

Permalink
Update groupby.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
boushphong authored Jan 17, 2025
1 parent 5c9dc0d commit 0c5b2b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions macros/sql/groupby.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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 -%}

0 comments on commit 0c5b2b4

Please sign in to comment.