Skip to content

Commit d5e87e0

Browse files
Merge pull request #7 from fivetran/bug/quote-group-table
Bug/quote group table
2 parents e3559ee + 0af0f6b commit d5e87e0

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# dbt_pendo_source v0.1.1
2+
3+
## 🚨 Breaking Changes
4+
- n/a
5+
6+
## Bug Fixes
7+
- **For Snowflake warehouses:** Addressed issue [#6](https://github.com/fivetran/dbt_pendo/issues/6), in which users were seeing reserved keyword-related errors when the package selected from the source `GROUP` table. The package now incorporates appropriate quoting and casing for this table in Snowflake destinations. Thanks to both @leinemann and @payzer-mike for contributing!
8+
9+
## Features
10+
- Added this changelog to capture iterations of the package!
11+
12+
## Under the Hood
13+
- n/a

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ This package contains staging models, designed to work simultaneously with our [
2020
## Installation Instructions
2121
Check [dbt Hub](https://hub.getdbt.com/) for the latest installation instructions, or [read the dbt docs](https://docs.getdbt.com/docs/package-management) for more information on installing packages.
2222

23+
## Package Maintenance
24+
The Fivetran team maintaining this package **only** maintains the latest version. We highly recommend you keep your `packages.yml` updated with the [dbt hub latest version](https://hub.getdbt.com/fivetran/pendo_source/latest/). You may refer to the [CHANGELOG](/CHANGELOG.md) and release notes for more information on changes across versions.
25+
2326
## Configuration
2427

2528
By default, this package looks for your Pendo data in the `pendo` schema of your [target database](https://docs.getdbt.com/docs/running-a-dbt-project/using-the-command-line-interface/configure-your-profile). If this is not where your Pendo data is, add the following configuration to your `dbt_project.yml` file:

dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config-version: 2
22

33
name: 'pendo_source'
4-
version: '0.1.0'
4+
version: '0.1.1'
55

66
require-dbt-version: ">=0.20.0"
77

integration_tests/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
config-version: 2
22

33
name: 'pendo_source_integration_tests'
4-
version: '0.1.0'
4+
version: '0.1.1'
55

66
require-dbt-version: ">=0.20.0"
77
profile: 'integration_tests'

models/src_pendo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,9 @@ sources:
193193

194194
- name: group
195195
description: Table capturing the product areas.
196+
identifier: "{{ 'GROUP' if target.type == 'snowflake' else 'group' }}"
197+
quoting:
198+
identifier: "{{ true if target.type == 'snowflake' else false }}"
196199
columns:
197200
- name: app_id
198201
description: Foreign key referencing the `APPLICATION` that the product area lives in.

0 commit comments

Comments
 (0)