forked from dbt-labs/dbt-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcurrent_timestamp.sql
More file actions
29 lines (21 loc) · 810 Bytes
/
current_timestamp.sql
File metadata and controls
29 lines (21 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% macro current_timestamp() %}
{{ adapter_macro('dbt_utils.current_timestamp') }}
{% endmacro %}
{% macro default__current_timestamp() %}
current_timestamp::{{dbt_utils.type_timestamp()}}
{% endmacro %}
{% macro bigquery__current_timestamp() %}
current_timestamp
{% endmacro %}
{% macro current_timestamp_in_utc() %}
{{ adapter_macro('dbt_utils.current_timestamp_in_utc') }}
{% endmacro %}
{% macro default__current_timestamp_in_utc() %}
{{dbt_utils.current_timestamp()}}
{% endmacro %}
{% macro snowflake__current_timestamp_in_utc() %}
convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}
{% endmacro %}
{% macro postgres__current_timestamp_in_utc() %}
(current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}
{% endmacro %}