Skip to content

Commit

Permalink
Fix dangling datediff reference (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
clausherther authored Dec 28, 2022
1 parent ca49861 commit 28a9a75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ model_data as (
{{ dbt.dateadd(
date_part,
"mod(
cast(" ~ datediff("'" ~ start_date ~ "'", date_col, date_part) ~ " as " ~ dbt.type_int() ~ " ),
cast(" ~ dbt.datediff("'" ~ start_date ~ "'", date_col, date_part) ~ " as " ~ dbt.type_int() ~ " ),
cast(" ~ interval ~ " as " ~ dbt.type_int() ~ " )
) * (-1)",
"cast( " ~ dbt.date_trunc(date_part, date_col) ~ " as " ~ dbt_expectations.type_datetime() ~ ")"
Expand Down

0 comments on commit 28a9a75

Please sign in to comment.