Skip to content

Commit

Permalink
Bugfix/group reserved kw union data v3 (#58)
Browse files Browse the repository at this point in the history
* identifier var in macro

* stage

* docs

* changelog tweak

* Update macros/union/union_zendesk_connections.sql

Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com>

* Update CHANGELOG.md

Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com>

* fovd

---------

Co-authored-by: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com>
  • Loading branch information
fivetran-jamie and fivetran-joemarkiewicz authored Dec 9, 2024
1 parent 94c1b56 commit c732bdb
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# dbt_zendesk_source v0.14.1

[PR #58](https://github.com/fivetran/dbt_zendesk_source/pull/58) includes the following update:

## Bug Fixes
- In v0.14.0 (or [v0.19.0](https://github.com/fivetran/dbt_zendesk/releases/tag/v0.19.0) of the transform package), Snowflake users may have seen `when searching for a relation, dbt found an approximate match` errors when running the `stg_zendesk__group_tmp` model. The issue stemmed from the `adapter.get_relation()` logic within the `union_zendesk_connections` macro, which has now been updated to resolve the error.

# dbt_zendesk_source v0.14.0
[PR #44](https://github.com/fivetran/dbt_zendesk_source/pull/44) includes the following updates:

Expand Down
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
config-version: 2
name: 'zendesk_source'
version: '0.14.0'
version: '0.14.1'
require-dbt-version: [">=1.3.0", "<2.0.0"]

models:
Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'zendesk_source_integration_tests'
version: '0.13.0'
version: '0.14.1'

profile: 'integration_tests'

Expand Down
5 changes: 4 additions & 1 deletion macros/union/union_zendesk_connections.sql
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@

{% else %}
{# Not unioning #}

{% set identifier_var = "zendesk_" + single_table_name + "_identifier"%}

{%- set relation=adapter.get_relation(
database=source(single_source_name, single_table_name).database,
schema=source(single_source_name, single_table_name).schema,
identifier=source(single_source_name, single_table_name).identifier
identifier=var(identifier_var, single_table_name)
) -%}

{%- if relation is not none -%}
Expand Down

0 comments on commit c732bdb

Please sign in to comment.