Skip to content

Commit

Permalink
allow timestamp comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dataders committed Oct 12, 2021
1 parent 97c36c1 commit db5072d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions integration_tests/dbt_date/macros/get_test_dates.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
{% macro synapse__get_test_week_of_year() -%}
{{ return(sqlserver__get_test_week_of_year()) }}
{%- endmacro %}

{% macro sqlserver__get_test_timestamps() -%}
{{ return(['2021-06-07 07:35:20.000000 -07:00',
'2021-06-07 14:35:20.000000 +00:00']) }}
{%- endmacro %}
2 changes: 1 addition & 1 deletion macros/dbt_utils/cross_db_utils/datatypes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{% macro sqlserver__type_timestamp() %}
{# in TSQL timestamp is really datetime #}
{# https://docs.microsoft.com/en-us/sql/t-sql/functions/date-and-time-data-types-and-functions-transact-sql?view=sql-server-ver15#DateandTimeDataTypes #}
datetime
datetime2
{% endmacro %}

{#
Expand Down

0 comments on commit db5072d

Please sign in to comment.