Skip to content

Commit

Permalink
fix macros
Browse files Browse the repository at this point in the history
  • Loading branch information
ptiurin committed Dec 1, 2023
1 parent c5d994a commit 64f231e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dbt/include/firebolt/macros/utils/cast_bool_to_text.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro firebolt__cast_bool_to_text(field) %}
CASE
WHEN {{ field }} = 0 THEN 'false'
WHEN {{ field }} = 1 THEN 'true'
WHEN {{ field }} = false THEN 'false'
WHEN {{ field }} = true THEN 'true'
ELSE NULL
END
{% endmacro %}
2 changes: 1 addition & 1 deletion dbt/include/firebolt/macros/utils/datediff.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro firebolt__datediff(first_date, second_date, datepart) -%}

datediff(
date_diff(
'{{ datepart }}',
{{ first_date }} :: TIMESTAMP,
{{ second_date }} :: TIMESTAMP
Expand Down

0 comments on commit 64f231e

Please sign in to comment.