-
Notifications
You must be signed in to change notification settings - Fork 39
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
stg_hubspot__engagement_email depreciated columns breaking build #124
Comments
Hi @karlthumm thanks for opening this issue. I imagine we could probably leverage the |
There are three offending properties: |
Thanks @karlthumm, is this how these fields are named in the HubSpot UI? |
Currently I don't have access to the HubSpot UI, however I can try to get access and see what I can find. |
Are you asking this question for me to go in and disable these properties in the UI? Only reason why I'm asking is it would probably be best to exclude any future column with a '-' similar to the change that you made truncating the 'property_hs_all_' string. |
@karlthumm I am asking more from an angle of understanding how these fields are shown in HubSpot vs the API. Is this something that was populated in the raw data by Fivetran and needs to be addressed in the connector, or is this something that HubSpot allows and we need to address in the package. I am also a bit suspicious that the field names themselves have the word |
Got it. Confirming that no one on my team added these fields or made any changes to the model that's failing so it must be coming directly from HubSpot. |
@karlthumm thanks again for working with me through this. After reviewing this further I believe a feasible approach would be to adjust the macro in the package to enclose the explicit selected fields to be in strings. This would ensure this type of error doesn't persist. So the update would look something like this: , "{{ col.name }}" as {{ col.name[prefix|length:] }} We will update and validate this prior to release in our upcoming sprint. |
Thank you @fivetran-joemarkiewicz! Appreciate the support on this. |
Reopening so we can track progress in the upcoming sprint. |
@karlthumm To update you, I have picked up this task and aim to have something for you to try in the next week! |
Hi @karlthumm, I have created a test branch that you can try that should resolve this issue. You can install it by using the below snippet in your packages.yml in place of your normal hubspot lines. - git: https://github.com/fivetran/dbt_hubspot.git
revision: release/v0.15.0
warn-unpinned: false If you are able to test it, please let me know your feedback! |
This update has been released in the latest version, so closing this issue out! |
Is there an existing issue for this?
Describe the issue
There's an error with depreciated fields containing a '-' are breaking the build. Example: property_hs_all-deprecated-127cf554-5d2f-4c78-b3fc-ac0986bce102
Relevant error log or model output
Expected behavior
No error to be thrown and model built.
dbt Project configurations
hubspot_source:
# If there is a need to enable a hubspot source, ensure its enabled at both
hubspot_database: "beehive"
hubspot_schema: "fivetran_hubspot"
# Disabled unused hubspot source models
# enable company model for testing temporarily
# hubspot_deal_company_enabled: false
hubspot_deal_contact_enabled: false
hubspot_deal_enabled: false
hubspot_email_event_forward_enabled: false
hubspot_email_event_print_enabled: false
hubspot_engagement_deal_enabled: false
hubspot_engagement_task_enabled: false
stg_hubspot__engagement_email: false
hubspot:
hubspot_database: "beehive"
hubspot_schema: "fivetran_hubspot"
# Disabled unused hubspot models
# enable company model for testing temporarily
# hubspot_company_enabled: false
hubspot_deal_company_enabled: false
hubspot_deal_contact_enabled: false
hubspot_deal_enabled: false
hubspot_email_event_forward_enabled: false
hubspot_email_event_print_enabled: false
hubspot_engagement_deal_enabled: false
hubspot_engagement_task_enabled: false
stg_hubspot__engagement_email: false
email_metrics tracked for hubspot
email_metrics: ['bounces', 'clicks', 'deferrals', 'deliveries', 'drops',
'forwards', 'opens', 'prints', 'spam_reports',
'suppresses', 'processes']
Package versions
version: [">=0.12.0", "<0.13.0"]
What database are you using dbt with?
redshift
dbt Version
1.5.4
Additional Context
No response
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: