-
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] stg_hubspot__contact: Duplication between PROPERTY_CREATEDATE and PROPERTY_CREATED_AT #117
Comments
I created this attached PR to showcase the issue but I guess there is better way to fix it |
Hi @moreaupascal56 thanks for flagging this issue! I have started taking a look at this and could use a little more information. In your source |
Hey thanks ! we have both columns in the source table. I don't know
however if this is a custom property we made on hubspot or a default one
from hubspot
Le mer. 11 oct. 2023, 21:27, fivetran-catfritz ***@***.***> a
écrit :
… Hi @moreaupascal56 <https://github.com/moreaupascal56> thanks for
flagging this issue! I have started taking a look at this and could use a
little more information. In your source contact table, are you seeing
both PROPERTY_CREATEDATE and PROPERTY_CREATED_AT columns, or only
PROPERTY_CREATED_AT?
—
Reply to this email directly, view it on GitHub
<#117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMENIP5JFLPE2SH7NL5PJZ3X63XLJANCNFSM6AAAAAA53UOLDM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@moreaupascal56 Thank you much for the info! I will discuss this with our internal team. |
@moreaupascal56 Thanks again for identifying the issue areas! I talked with the team, and we are thinking to update the alias you identified in the get_contact_columns() macro to be |
Hi, I think that is the more logical way to do it as well |
Thanks @moreaupascal56! We plan to bring this into the next update for this package. We'll also let you know when we have a better sense of the timing. |
Sounds great, thanks for the update!
Le mar. 17 oct. 2023, 20:29, fivetran-catfritz ***@***.***> a
écrit :
… Thanks @moreaupascal56 <https://github.com/moreaupascal56>! We plan to
bring this into the next update for this package. We'll also let you know
when we have a better sense of the timing.
—
Reply to this email directly, view it on GitHub
<#117 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMENIPYXXG3DRWYEFRPLZXDX73FANAVCNFSM6AAAAAA53UOLDOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRWHE2DQNZVHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
hi there, Looks good I am not able to test on prod rn because I switched jobs but this will help the team for sure :) Pascal |
Is there an existing issue for this?
Describe the issue
Hello,
I have an issue with a duplicate column, when running
dbt run -s +stg_hubspot_contact
I have the following errorI have
hubspot__pass_through_all_columns: true
I had a closer look and it seems that the properties: PROPERTY_CREATEDATE and PROPERTY_CREATED_AT are named after prefix removal PROPERTY_CREATED_AT.
I think this is because in get_contact_columns() macro
the PROPERTY_CREATEDATE is mapped to
created_at
:{"name": "property_createdate", "datatype": dbt.type_timestamp(), "alias": "created_at"},
The issue comes from the fact that the column PROPERTY_CREATED_AT is not excluded in the exclude parameter of stg_hubspot__contact which only returns these columns:
(so PROPERTY_CREATEDATE and not PROPERTY_CREATED_AT)
And then obviously PROPERTY_CREATED_AT is renamed as created_at and this is causing the issue.
Hope I was clear enough
Have a great day
Relevant error log or model output
Expected behavior
Either exclude PROPERTY_CREATED_AT by default to avoid this issue or change PROPERTY_CREATEDATE mapping
I think the PROPERTY_ + aliases defined in get_contact_columns() macro
should be excluded as well.
dbt Project configurations
dbt hubspot source 0.12.0
dbt 1.4.4
Package versions
dbt hubspot source 0.12.0
dbt 1.4.4
What database are you using dbt with?
snowflake
dbt Version
dbt 1.4.4
Additional Context
maybe we will open a PR
Are you willing to open a PR to help address this issue?
The text was updated successfully, but these errors were encountered: