diff --git a/macros/groupby.sql b/macros/groupby.sql index 6dddcf5c..36543233 100644 --- a/macros/groupby.sql +++ b/macros/groupby.sql @@ -1,7 +1,7 @@ {% macro group_by(n) %} group by - {% for i in range(1, n) %} + {% for i in range(1, n + 1) %} {{ i }} {% if not loop.last %} , {% endif %} {% endfor %}