Skip to content

Commit

Permalink
switch parameter order for test_dateadd to match typical order
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-juntunen committed Apr 21, 2024
1 parent 76dfc4d commit dec62d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbt/include/sqlite/macros/utils/dateadd.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% macro sqlite__dateadd(from_date_or_timestamp, interval, datepart) %}
{% macro sqlite__dateadd(datepart, interval, from_date_or_timestamp) %}
-- If provided a DATETIME, returns a DATETIME
-- If provided a DATE, returns a DATE

Expand Down
2 changes: 1 addition & 1 deletion tests/functional/adapter/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class BaseDateAdd(BaseUtils):
)
select
{{ dateadd('from_time', 'interval_length', 'datepart') }} AS actual,
{{ dateadd('datepart', 'interval_length', 'from_time') }} AS actual,
result as expected
from data
"""
Expand Down

0 comments on commit dec62d3

Please sign in to comment.