Skip to content

Commit

Permalink
[Fix] Accidental skip of staging with postgres cents_to_dollars m…
Browse files Browse the repository at this point in the history
…acro (#38)
  • Loading branch information
gwenwindflower authored Apr 18, 2024
2 parents 3725958 + 375683a commit 0b965c7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions macros/cents_to_dollars.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
({{ column_name }} / 100)::numeric(16, 2)
{%- endmacro %}

{% macro postgres__cents_to_dollars(column_name) -%}
({{ column_name }}::numeric(16, 2) / 100)
{%- endmacro %}

{% macro bigquery__cents_to_dollars(column_name) %}
round(cast(({{ column_name }} / 100) as numeric), 2)
{% endmacro %}

0 comments on commit 0b965c7

Please sign in to comment.