Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upversion dbt-utils dependency accounting for features moved to core #111

Merged
merged 4 commits into from
Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.5
epapineau marked this conversation as resolved.
Show resolved Hide resolved