-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Employ base tables to resolve unioning-null issue (#25)
* added to hubspot * add tmp models to jira and zendesk * try this out in bk * forgot one zendesk model * bk * revert and document * typo * docs * readme upgrade * owner update * levon's stuff * coalesces * include records without comments in jira and zendesk as well * license * Update CHANGELOG.md Co-authored-by: Joe Markiewicz <[email protected]> * Apply suggestions from code review Co-authored-by: Avinash Kunnath <[email protected]> * avinash feedback --------- Co-authored-by: Joe Markiewicz <[email protected]> Co-authored-by: Avinash Kunnath <[email protected]>
- Loading branch information
1 parent
59d8592
commit 11a445c
Showing
50 changed files
with
579 additions
and
327 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__company_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='company', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_company', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__contact_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='contact', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_contact', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__deal_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='deal', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_deal', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__engagement_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='engagement', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_engagement', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__engagement_company_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='engagement_company', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_engagement_company', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__engagement_contact_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='engagement_contact', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_engagement_contact', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__engagement_deal_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='engagement_deal', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_engagement_deal', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__engagement_email_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='engagement_email', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_engagement_email', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__engagement_note_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='engagement_note', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_engagement_note', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
14 changes: 14 additions & 0 deletions
14
models/staging/hubspot_staging/base/stg_rag_hubspot__owner_base.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{{ config(enabled=var('rag__using_hubspot', True)) }} | ||
|
||
{{ | ||
fivetran_utils.union_data( | ||
table_identifier='owner', | ||
database_variable='rag_hubspot_database', | ||
schema_variable='rag_hubspot_schema', | ||
default_database=target.database, | ||
default_schema='rag_hubspot', | ||
default_variable='hubspot_owner', | ||
union_schema_variable='rag_hubspot_union_schemas', | ||
union_database_variable='rag_hubspot_union_databases' | ||
) | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 4 additions & 14 deletions
18
models/staging/hubspot_staging/stg_rag_hubspot__contact.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.