Skip to content
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
12 changes: 12 additions & 0 deletions .changes/1.8.1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 1.8.1
pr_number: 91
bug_fixes:
- description: Fixes a runtime error in `stg_intercom__conversation_history` when
`assignee_id` arrives from the source as a string. The conversion of `0` to null
added in v1.8.0 now compares the value as text and keeps the column's original
type.
under_the_hood:
- description: Updates the `assignee_id` datatype in `get_conversation_history_columns`
from integer to string to match how the connector delivers the column. This only
affects the null-filled column when `assignee_id` is missing from the source.
date: '2026-11-03'
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# dbt_intercom v1.8.1

[PR #91](https://github.com/fivetran/dbt_intercom/pull/91) includes the following updates:

## Bug Fix
- Fixes a runtime error in `stg_intercom__conversation_history` when `assignee_id` arrives from the source as a string. The conversion of `0` to null added in v1.8.0 now compares the value as text and keeps the column's original type.

## Under the Hood
- Updates the `assignee_id` datatype in `get_conversation_history_columns` from integer to string to match how the connector delivers the column. This only affects the null-filled column when `assignee_id` is missing from the source.

# dbt_intercom v1.8.0

[PR #89](https://github.com/fivetran/dbt_intercom/pull/89) 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: 'intercom'
version: '1.8.0'
version: '1.8.1'
require-dbt-version: [">=1.3.0", "<3.0.0"]
models:
intercom:
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,5 +1,5 @@
name: 'intercom_integration_tests'
version: '1.8.0'
version: '1.8.1'
profile: 'integration_tests'
config-version: 2

Expand Down
2 changes: 1 addition & 1 deletion macros/staging/get_conversation_history_columns.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{"name": "_fivetran_active", "datatype": "boolean"},
{"name": "_fivetran_start", "datatype": dbt.type_timestamp()},
{"name": "_fivetran_end", "datatype": dbt.type_timestamp()},
{"name": "assignee_id", "datatype": dbt.type_int()},
{"name": "assignee_id", "datatype": dbt.type_string()},
{"name": "conversation_rating_remark", "datatype": dbt.type_int()},
{"name": "conversation_rating_value", "datatype": dbt.type_int()},
{"name": "created_at", "datatype": dbt.type_timestamp()},
Expand Down
2 changes: 1 addition & 1 deletion models/staging/stg_intercom__conversation_history.sql
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ final as (
source_relation,
id as conversation_id,
cast(created_at as {{ dbt.type_timestamp() }}) as created_at,
nullif(assignee_id, 0) as assignee_id,
case when cast(assignee_id as {{ dbt.type_string() }}) = '0' then null else assignee_id end as assignee_id,
conversation_rating_value,
conversation_rating_remark,
cast(first_contact_reply_created_at as {{ dbt.type_timestamp() }}) as first_contact_reply_created_at,
Expand Down
Loading