Skip to content

Commit

Permalink
Upversion dbt-utils dependency accounting for features moved to core (#…
Browse files Browse the repository at this point in the history
…111)

* Upversion dbt_utils dependency accounting for features moved to core

* Increase package version

* Widen package version requirements

* Include dbt utils 1.0
  • Loading branch information
epapineau authored Dec 2, 2022
1 parent 99601e3 commit 7f23163
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#settings specifically for this models directory
#config other dbt settings within ~/.dbt/profiles.yml
name: 'snowplow'
version: '0.13.0'
version: '0.14.0'
config-version: 2

model-paths: ["models"]
Expand Down
16 changes: 8 additions & 8 deletions models/page_views/default/snowplow_page_views.sql
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ with all_events as (
{% if is_incremental() %}

where collector_tstamp >
{{dbt_utils.dateadd(
{{ dbt.dateadd(
'day',
-1 * var('snowplow:page_view_lookback_days'),
get_start_ts(this, 'max_tstamp')
)}}
) }}

{% endif %}

Expand Down Expand Up @@ -220,17 +220,17 @@ prep as (
d.os_patch as os_build_version,
d.device_family as device,
{% else %}
cast(null as {{ dbt_utils.type_string() }}) as browser,
cast(null as {{ dbt.type_string() }}) as browser,
a.br_family as browser_name,
a.br_name as browser_major_version,
a.br_version as browser_minor_version,
cast(null as {{ dbt_utils.type_string() }}) as browser_build_version,
cast(null as {{ dbt.type_string() }}) as browser_build_version,
a.os_family as os,
a.os_name as os_name,
cast(null as {{ dbt_utils.type_string() }}) as os_major_version,
cast(null as {{ dbt_utils.type_string() }}) as os_minor_version,
cast(null as {{ dbt_utils.type_string() }}) as os_build_version,
cast(null as {{ dbt_utils.type_string() }}) as device,
cast(null as {{ dbt.type_string() }}) as os_major_version,
cast(null as {{ dbt.type_string() }}) as os_minor_version,
cast(null as {{ dbt.type_string() }}) as os_build_version,
cast(null as {{ dbt.type_string() }}) as device,
{% endif %}

c.br_viewwidth as browser_window_width,
Expand Down
2 changes: 1 addition & 1 deletion models/page_views/optional/snowplow_web_timing_context.sql
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ prep as (
{% set ts_columns = ['pt.response_end', 'pt.unload_event_start', 'pt.unload_event_end'] %}
{% for ts_column in ts_columns %}

and {{ dbt_utils.datediff('pt.root_tstamp', dbt_utils.dateadd('millisecond', ts_column, "'1970-01-01'"), 'day') }} < 365
and {{ dbt.datediff('pt.root_tstamp', dbt.dateadd('millisecond', ts_column, "'1970-01-01'"), 'day') }} < 365

{% endfor %}

Expand Down
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: dbt-labs/dbt_utils
version: [">=0.8.0", "<0.9.0"]
version: [">=0.9.0", "<2.0.0"]

0 comments on commit 7f23163

Please sign in to comment.