Skip to content
This repository was archived by the owner on Dec 4, 2024. It is now read-only.

Commit 97dfc71

Browse files
authored
Merge pull request #30 from fishtown-analytics/bump/dbt-0-17-0
Bump/dbt 0 17 0
2 parents 703dd3c + 6698162 commit 97dfc71

File tree

7 files changed

+17
-9
lines changed

7 files changed

+17
-9
lines changed

.circleci/config.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version: 2.1
44
jobs:
55
build:
66
docker:
7-
- image: circleci/python:3.6.2-stretch
7+
- image: circleci/python:3.6.3-stretch
88
- image: circleci/postgres:9.6.5-alpine-ram
99

1010
steps:
@@ -20,7 +20,7 @@ jobs:
2020
. venv/bin/activate
2121
2222
pip install --upgrade pip setuptools
23-
pip install dbt==0.16.1
23+
pip install dbt
2424
2525
mkdir -p ~/.dbt
2626
cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml

.github/ISSUE_TEMPLATE/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @clrcrl

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
> this package, especially as a post-hook. Please consider if this package is
66
> appropriate for your use case before using it.
77
8-
Requires dbt >= 0.16.0
8+
Requires dbt >= 0.17.0
99

1010
This package provides out-of-the-box functionality to log events for all dbt
1111
invocations, including run start, run end, model start, and model end. It
@@ -63,3 +63,6 @@ New columns were added in v0.2.0:
6363
- **event_is_full_refresh as is_full_refresh** - `boolean` whether the DBT run was a full refresh
6464

6565
These will be added to your existing audit table automatically in the `on-run-start` DBT hook, and added to the staging tables deployed by this table when they are ran. The existing `event_schema` column will also be propagated into to `stg_dbt_model_deployments` as `schema`.
66+
67+
###Contributing
68+
Additional contributions to this repo are very welcome! Check out [this](https://discourse.getdbt.com/t/contributing-to-an-external-dbt-package/657) post on the best workflow for contributing to a package. All PRs should only include functionality that is contained within all Segment deployments; no implementation-specific details should be included.

dbt_project.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: 'logging'
2-
version: '1.0'
2+
version: '0.3.0'
3+
config-version: 2
4+
5+
require-dbt-version: [">=0.17.0"]
36

47
source-paths: ["models"]
58
analysis-paths: ["analysis"]
@@ -27,4 +30,4 @@ on-run-end:
2730

2831
models:
2932
logging:
30-
schema: meta
33+
+schema: meta

integration_tests/dbt_project.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

22
name: 'event_logging_integration_tests'
3-
version: '1.0'
3+
version: '0.3.0'
4+
config-version: 2
45

56
profile: 'integration_tests'
67

7-
require-dbt-version: ">=0.15.0"
88

99
models:
1010
pre-hook: "{{ logging.log_model_start_event() }}"

integration_tests/macros/drop_audit_schema.sql

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
{% set audit_schema=logging.get_audit_schema() %}
33

44
{% if adapter.check_schema_exists(target.database, audit_schema) %}
5-
{% do drop_schema(target.database, audit_schema) %}
5+
{% set audit_schema_relation = api.Relation.create(database=target.database, schema=audit_schema).without_identifier() %}
6+
{% do drop_schema(audit_schema_relation) %}
67
{% do run_query("commit;") %}
78
{{ dbt_utils.log_info("Audit schema dropped")}}
89

packages.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages:
22
- package: fishtown-analytics/dbt_utils
3-
version: [">=0.2.4", "<0.4.0"]
3+
version: [">=0.2.4", "<0.5.0"]

0 commit comments

Comments
 (0)