Skip to content

Commit

Permalink
Remove extra macro
Browse files Browse the repository at this point in the history
  • Loading branch information
clausherther committed Jun 14, 2021
1 parent 2183459 commit 1477245
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions macros/calendar_date/from_unixtimestamp.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,6 @@
cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)
{%- endmacro %}

{%- macro postgres__from_unixtimestamp(epochs, format="seconds") -%}
{%- if format != "seconds" -%}
{{ exceptions.raise_compiler_error(
"value " ~ format ~ " for `format` for from_unixtimestamp is not supported."
)
}}
{% endif -%}
cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)
{%- endmacro %}


{%- macro snowflake__from_unixtimestamp(epochs, format) -%}
{%- if format == "seconds" -%}
{%- set scale = 0 -%}
Expand Down

0 comments on commit 1477245

Please sign in to comment.