Skip to content

Commit

Permalink
bk
Browse files Browse the repository at this point in the history
  • Loading branch information
fivetran-jamie committed Dec 9, 2024
1 parent 3ddf77d commit cfdaf2c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
7 changes: 6 additions & 1 deletion integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ vars:
zendesk_daylight_time_identifier: "daylight_time_data"
zendesk_brand_identifier: "brand_data"
# zendesk_group_identifier: "GROUP_DATA_TMP"
zendesk_group_identifier: "group_data_tmp"
# zendesk_group_identifier: "group_data_tmp"

# zendesk_group_identifier: "{{ GROUP_DATA if target.type == 'snowflake' else group_data }}"
zendesk_organization_tag_identifier: "organization_tag_data"
Expand All @@ -44,6 +44,11 @@ seeds:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
created_at: timestamp
updated_at: timestamp
group:
+column_types:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
created_at: timestamp
updated_at: timestamp
organization_data:
+column_types:
id: "{{ 'int64' if target.type == 'bigquery' else 'bigint' }}"
Expand Down
9 changes: 9 additions & 0 deletions integration_tests/seeds/group.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
id,_fivetran_deleted,_fivetran_synced,created_at,name,updated_at,url
360008426314,FALSE,2021-01-19 20:08:24.256,2020-02-04 00:03:11,Non-Support - (Billing Tickets),2020-02-04 00:40:57,https://zendesk.com/api/v2/groups/360008426314.json
360013670454,FALSE,2021-01-19 20:08:24.256,2020-09-01 10:16:50,Assignment Group 7,2020-09-01 10:16:50,https://zendesk.com/api/v2/groups/360013670454.json
360014827554,FALSE,2021-01-19 20:08:24.256,2020-10-07 21:53:42,Information Technology,2020-10-07 21:57:54,https://zendesk.com/api/v2/groups/360014827554.json
360008418973,FALSE,2021-01-19 20:08:24.256,2020-02-04 00:41:49,Non-Support - (Prospect Tickets),2020-02-04 00:41:49,https://zendesk.com/api/v2/groups/360008418973.json
360013670414,FALSE,2021-01-19 20:08:24.255,2020-09-01 10:15:17,Assignment Group 4,2020-09-01 10:15:17,https://zendesk.com/api/v2/groups/360013670414.json
360013656353,FALSE,2021-01-19 20:08:24.255,2020-09-01 10:15:55,Assignment Group 5,2020-09-01 10:15:55,https://zendesk.com/api/v2/groups/360013656353.json
360013656373,FALSE,2021-01-19 20:08:24.255,2020-09-01 10:16:23,Assignment Group 6,2020-09-01 10:16:23,https://zendesk.com/api/v2/groups/360013656373.json
360013670374,FALSE,2021-01-19 20:08:24.254,2020-09-01 10:14:39,Assignment Group 3,2020-09-01 10:14:39,https://zendesk.com/api/v2/groups/360013670374.json
2 changes: 1 addition & 1 deletion models/src_zendesk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ sources:
description: Index number of the domain name associated with the organization

- name: group
identifier: "{%- if var('zendesk_group_identifier', '') != '' -%} {{ var('zendesk_group_identifier') }} {%- elif target.type in ('snowflake', 'postgres', 'redshift') -%} GROUP {%- else -%} group {%- endif -%}"
identifier: "{%- if var('zendesk_group_identifier', '') != '' -%} {{ var('zendesk_group_identifier') }} {%- elif target.type in ('snowflake', 'postgres') -%} 'GROUP' {%- else -%} group {%- endif -%}"
quoting:
identifier: true
description: >
Expand Down

0 comments on commit cfdaf2c

Please sign in to comment.