Skip to content

Commit

Permalink
Merge pull request dbt-labs#48 from fishtown-analytics/fix/snowflake-…
Browse files Browse the repository at this point in the history
…row-num-date-spine

fix for orderby on snowflake
  • Loading branch information
drewbanin authored Jan 31, 2018
2 parents 2fe6f92 + 1ca327c commit 0873c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/datetime/date_spine.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ all_periods as (
{{
dbt_utils.dateadd(
datepart,
"row_number() over () - 1",
"row_number() over (order by 1) - 1",
start_date
)
}}
Expand Down

0 comments on commit 0873c13

Please sign in to comment.