Skip to content

Commit

Permalink
Upgrade dbt v0.20, dbt-utils v0.7 (#104)
Browse files Browse the repository at this point in the history
* Upgrade dbt v0.20, dbt-utils v0.7

* Update version, company name
  • Loading branch information
jtcohen6 authored Jul 7, 2021
1 parent f24a2bf commit 606c37d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip setuptools
pip install dbt
pip install --pre dbt
mkdir -p ~/.dbt
cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ For specific implementation details:
* [Android trackers](https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/android-tracker/)

## Installation Instructions
Check [dbt Hub](https://hub.getdbt.com/fishtown-analytics/snowplow/latest/) for
Check [dbt Hub](https://hub.getdbt.com/dbt-labs/snowplow/latest/) for
the latest installation instructions, or [read the docs](https://docs.getdbt.com/docs/package-management)
for more information on installing packages.

Expand Down Expand Up @@ -89,7 +89,7 @@ Core:
* Postgres
Plugins:
* Spark (via [`spark_utils`](https://github.com/fishtown-analytics/spark-utils))
* Spark (via [`spark_utils`](https://github.com/dbt-labs/spark-utils))

### Contributions ###

Expand Down
4 changes: 2 additions & 2 deletions 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.12.0'
version: '0.13.0'
config-version: 2

source-paths: ["models"]
Expand All @@ -12,7 +12,7 @@ analysis-paths: ["analysis"]
data-paths: ["data"]
macro-paths: ["macros"]

require-dbt-version: ">=0.18.0"
require-dbt-version: ">=0.20.0"

vars:
#'snowplow:events': TABLE OR {{ REF() }}
Expand Down
4 changes: 0 additions & 4 deletions macros/adapters/_get_snowplow_namespaces.sql

This file was deleted.

3 changes: 1 addition & 2 deletions macros/adapters/convert_timezone.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{%- macro convert_timezone(in_tz, out_tz, in_timestamp) -%}
{{ adapter.dispatch('convert_timezone', packages = snowplow._get_snowplow_namespaces())
(in_tz, out_tz, in_timestamp) }}
{{ adapter.dispatch('convert_timezone', 'snowplow')(in_tz, out_tz, in_timestamp) }}
{%- endmacro -%}

{% macro default__convert_timezone(in_tz, out_tz, in_timestamp) %}
Expand Down
2 changes: 1 addition & 1 deletion macros/adapters/get_start_ts.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@


{%- macro get_start_ts(relation, field = 'collector_tstamp') -%}
{{ adapter.dispatch('get_start_ts', packages = snowplow._get_snowplow_namespaces())(relation, field) }}
{{ adapter.dispatch('get_start_ts', 'snowplow')(relation, field) }}
{%- endmacro -%}


Expand Down
2 changes: 1 addition & 1 deletion macros/adapters/is_adapter.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% macro is_adapter(adapter_type='default') %}

{{ return(adapter.dispatch('is_adapter', packages = snowplow._get_snowplow_namespaces()) (adapter_type)) }}
{{ return(adapter.dispatch('is_adapter', 'snowplow') (adapter_type)) }}

{% endmacro %}

Expand Down
2 changes: 1 addition & 1 deletion macros/adapters/timestamp_ntz.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% macro timestamp_ntz(field) %}
{{ adapter.dispatch('timestamp_ntz', packages = snowplow._get_snowplow_namespaces()) (field) }}
{{ adapter.dispatch('timestamp_ntz', 'snowplow') (field) }}
{% endmacro %}

{% macro default__timestamp_ntz(field) %}
Expand Down
4 changes: 2 additions & 2 deletions packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: fishtown-analytics/dbt_utils
version: [">=0.6.0", "<0.7.0"]
- package: dbt-labs/dbt_utils
version: [">=0.7.0", "<0.8.0"]

0 comments on commit 606c37d

Please sign in to comment.