From 010752e461be8d181bfc5d4ad131febdc6f034b8 Mon Sep 17 00:00:00 2001 From: Claus Herther Date: Tue, 22 Aug 2023 20:32:18 -0700 Subject: [PATCH] Fix dataspine interval (#109) --- macros/_utils/date_spine.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macros/_utils/date_spine.sql b/macros/_utils/date_spine.sql index d936c57..dcffd6d 100644 --- a/macros/_utils/date_spine.sql +++ b/macros/_utils/date_spine.sql @@ -55,7 +55,7 @@ all_periods as ( {{ dbt.dateadd( datepart, - "row_number() over (order by 1) - 1", + "(row_number() over (order by 1) - 1)", start_date ) }}