Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/group reserved kw union data v3 #58

Merged
merged 7 commits into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading