-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
status:staleIssue was blocked or had no user response for more than 30 daysIssue was blocked or had no user response for more than 30 days
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the issue
In the stg_hubspot__contact
there is the following macro, whose purpose is to rename the columns that have as prefix property
and remove it. However, for the column property_delete
the result of this transformation is delete
. 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
Database Error in model stg_hubspot__contact (models/stg_hubspot__contact.sql)
001003 (42000): SQL compilation error:
syntax error line 652 at position 27 unexpected 'DELETE'.
compiled Code at target/run/hubspot_source/models/stg_hubspot__contact.sql
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?
- Yes.
- Yes, but I will need assistance and will schedule time during our office hours for guidance
- No.
Metadata
Metadata
Assignees
Labels
status:staleIssue was blocked or had no user response for more than 30 daysIssue was blocked or had no user response for more than 30 days