Skip to content

Commit 3580a09

Browse files
authored
Update dbt version for CI to 1.7.* (#121)
* Update dbt version to 1.7.* * Update duckdb timestamp conversion
1 parent df2f567 commit 3580a09

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
DBT_PROFILES_DIR: ./integration_tests/ci
1515
DBT_PROJECT_DIR: ./integration_tests
1616
BIGQUERY_SERVICE_KEY_PATH: "/home/circleci/bigquery-service-key.json"
17-
DBT_VERSION: 1.6.*
17+
DBT_VERSION: 1.7.*
1818

1919
steps:
2020
- checkout
@@ -104,7 +104,7 @@ jobs:
104104
environment:
105105
DBT_PROFILES_DIR: ./integration_tests/ci
106106
DBT_PROJECT_DIR: ./integration_tests
107-
DBT_VERSION: 1.6.*
107+
DBT_VERSION: 1.7.*
108108

109109
steps:
110110
- checkout
@@ -145,7 +145,7 @@ jobs:
145145
environment:
146146
DBT_PROFILES_DIR: ./integration_tests/ci
147147
DBT_PROJECT_DIR: ./integration_tests
148-
DBT_VERSION: 1.6.*
148+
DBT_VERSION: 1.7.*
149149

150150
steps:
151151
- checkout

macros/calendar_date/from_unixtimestamp.sql

+12
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,16 @@
6969
)
7070
}}
7171
{% endif -%}
72+
73+
{%- endmacro %}
74+
75+
76+
{%- macro duckdb__from_unixtimestamp(epochs, format="seconds") -%}
77+
{%- if format != "seconds" -%}
78+
{{ exceptions.raise_compiler_error(
79+
"value " ~ format ~ " for `format` for from_unixtimestamp is not supported."
80+
)
81+
}}
82+
{% endif -%}
83+
cast(to_timestamp({{ epochs }}) at time zone 'UTC' as timestamp)
7284
{%- endmacro %}

0 commit comments

Comments
 (0)