Skip to content

Commit 53843b7

Browse files
Merge pull request #19 from fivetran/bug/add_fivetran_id
bug/add_fivetran_id
2 parents d3ff7da + 9bd812b commit 53843b7

17 files changed

+60
-23
lines changed

.buildkite/hooks/pre-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,5 @@ export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="C
2121
export CI_SNOWFLAKE_DBT_WAREHOUSE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_WAREHOUSE" --project="dbt-package-testing-363917")
2222
export CI_DATABRICKS_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HOST" --project="dbt-package-testing-363917")
2323
export CI_DATABRICKS_DBT_HTTP_PATH=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HTTP_PATH" --project="dbt-package-testing-363917")
24-
export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
24+
export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917")
25+
export CI_DATABRICKS_DBT_CATALOG=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_CATALOG" --project="dbt-package-testing-363917")

.buildkite/pipeline.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,6 @@ steps:
6969
- "CI_DATABRICKS_DBT_HOST"
7070
- "CI_DATABRICKS_DBT_HTTP_PATH"
7171
- "CI_DATABRICKS_DBT_TOKEN"
72+
- "CI_DATABRICKS_DBT_CATALOG"
7273
commands: |
7374
bash .buildkite/scripts/run_models.sh databricks

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# dbt_pendo_source v0.4.0
2+
3+
## 🚨 Breaking Changes 🚨:
4+
## 🔧 Bug Fixes
5+
- Updated models `stg_pendo__feature_event` and `stg_pendo__page_event` to include `_fivetran_id`, which was recently added per the Fivetran Pendo Connector's [release notes](https://fivetran.com/docs/applications/pendo/changelog#december2022). ([#19](https://github.com/fivetran/dbt_pendo_source/pull/19))
6+
7+
## ✨ Features
8+
- Update documentation for `_fivetran_id`. ([#19](https://github.com/fivetran/dbt_pendo_source/pull/19))
9+
- Revised source yml and readme instructions for setting up the `GROUP` table with Snowflake. ([#19](https://github.com/fivetran/dbt_pendo_source/pull/19))
10+
111
# dbt_pendo_source v0.3.1
212
## Bug Fixes
313
- Updated readme for workaround if the pendo_<default_source_table_name>_identifer is having trouble with Snowflake reserved words. ([#17](https://github.com/fivetran/dbt_pendo_source/pull/17))

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Include the following pendo_source package version in your `packages.yml` file.
3838
```yaml
3939
packages:
4040
- package: fivetran/pendo_source
41-
version: [">=0.3.0", "<0.4.0"]
41+
version: [">=0.4.0", "<0.5.0"]
4242
```
4343

4444
## Step 3: Define database and schema variables
@@ -99,17 +99,27 @@ vars:
9999
pendo_source:
100100
pendo_<default_source_table_name>_identifier: "your_table_name"
101101
```
102-
#### 🚨 Snowflake Users
102+
#### 🚨 Snowflake Users 🚨
103103
You may need to provide the case-sensitive spelling of your source tables that are also Snowflake reserved words.
104104

105105
In this package, this would apply to the `GROUP` source. If you are receiving errors for this source, include the following in your `dbt_project.yml` file:
106-
107106
```yml
108107
vars:
109-
pendo_group_identifier: '"Group"' # as an example, must include this quoting pattern and your exact casing
108+
pendo_group_identifier: '"Group"' # as an example, must include this quoting pattern and adjust for your exact casing
109+
```
110+
110111

111-
quoting:
112-
identifier: true
112+
**Note!** if you have sources defined in one of your project's yml files, for example if you have a yml file with a `sources` level like in the following example, the prior code will not work.
113+
114+
Instead you will need to add the following where your group source table is defined in your yml:
115+
```yml
116+
sources:
117+
tables:
118+
- name: group
119+
# Add the below
120+
identifier: GROUP # Or what your group table is named, being mindful of casing
121+
quoting:
122+
identifier: true
113123
```
114124
</details>
115125

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
config-version: 2
22
name: 'pendo_source'
3-
version: '0.3.1'
3+
version: '0.4.0'
44
require-dbt-version: [">=1.3.0", "<2.0.0"]
55
models:
66
pendo_source:

docs/catalog.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/index.html

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/run_results.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

integration_tests/ci/sample.profiles.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ integration_tests:
4545
schema: pendo_source_integration_tests_2000
4646
threads: 8
4747
databricks:
48-
catalog: null
48+
catalog: "{{ env_var('CI_DATABRICKS_DBT_CATALOG') }}"
4949
host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}"
5050
http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}"
5151
schema: pendo_source_integration_tests_2000

0 commit comments

Comments
 (0)