-
Notifications
You must be signed in to change notification settings - Fork 32
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
[Bug] Use preserved word as alias in stg_hubspot__contact
#124
Comments
Hi there! Thanks for the taking the time to file this issue, it definitely makes sense. Couple of questions -- I presume that you have the Also, you mentioned that you'd expect this column to be aliased as |
i was able to recreate the issue and resolve it by adjusting our macro to wrap the outputted also are you using just the |
here are the branches btw # in packages.yml
packages:
## if only using hubpot_source
- git: https://github.com/fivetran/dbt_hubspot_source.git
revision: explore/remove-prefix-no-reserved-words
warn-unpinned: false
## if using transform (do not include above)
- git: https://github.com/fivetran/dbt_hubspot.git
revision: explore/remove-prefix-no-reserved-words
warn-unpinned: false |
Hi, and thank you for the response! You correctly presumed that I have the
I use both of them. |
Ah yeah you have a very good point. Question - do you care about having the |
just bumping this 😄 @papost |
marking this as stale for now, but happy to continue thinking this through if folks are interested! |
Is there an existing issue for this?
Describe the issue
In the
stg_hubspot__contact
there is the following macro, whose purpose is to rename the columns that have as prefixproperty
and remove it. However, for the columnproperty_delete
the result of this transformation isdelete
. However, this world is preserved leading to unexpected behavior.{{ fivetran_utils.remove_prefix_from_columns( columns=adapter.get_columns_in_relation(ref('stg_hubspot__contact_tmp')), prefix='property_', exclude=get_macro_columns(get_contact_columns())) }} {% endif %}
Relevant error log or model output
Expected behavior
The expected behavior is to give a different naming convention to this column. For example,
is_contact_deleted
dbt Project configurations
dbt version: 1.7.4
adapter: snowflake 1.7.1
Package versions
Package version 0.14.0
What database are you using dbt with?
snowflake
dbt Version
dbt version: 1.7.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: