-
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
Deal Pipeline Stage Label is duplicated #75
Comments
Hi @moseleyi thanks so much for opening this Issue! This definitely seems like a behavior that is not intended and should be addressed. I did some querying on my side as well and found the same results you are mentioning where the same stage is applied to each stage in the final model for the deal. I looked a bit closer and found that we seem to filter out inactive stages in our staging model. This in turn ensures that each stage in the |
Since it's a historical table, the active flag is completely redundant, as we want to see all past stages regardless of their current status. I ran the models without the I'm not sure this is it because when I look at |
Any news? It's critical bug as it stops being able to analyse deal stages |
Hi @moseleyi thanks for getting back with these details. I was able to look into this some more and found that removing the filter didn't have the same effect you are mentioning where the packages:
- git: https://github.com/fivetran/dbt_hubspot.git
revision: bugfix/deleted-stages
warn-unpinned: false Let me know if this resolves the issue on your end! |
This code:
Is a little bit weird. Why do we bring all the deals' data to deal stages? That's why my query returns the label only of the current one. I expected the |
I added this:
To get the name of each stage, and here are the results for the same deal: |
hey @moseleyi - so yes you are correct in that we are only grabbing pipeline stage information for the deal's current stage, which doesn't make sense for the i've adapted your logic from the query above and joined in information for each stage if you wanna try out this branch again! packages:
- git: https://github.com/fivetran/dbt_hubspot.git
revision: bugfix/deleted-stages
warn-unpinned: false |
Thanks @fivetran-jamie for the update. Because we bring all the data from Deals to Deal Stages, I'm still confused as to which field corresponds to the stages. Two things:
That's because Deal Stage Name is still a numerical way of hubspot naming the stages. What we need is a label: |
@moseleyi I completely agree -- having the parent i've removed the |
oh hm, if you're in dbt cloud i don't think you can |
You need to change reference to the deal name field, it's |
Apart from that, things are working as expected :) |
great! i'm a little confused about the dealname issue though...i believe we rename the column to |
Ohhhh great catch ... yeah we're renaming I've just pushed some code that renames these columns to |
Works now : ) |
@fivetran-jamie Do I need to wait for the release? |
ah yeah the release should come out tomorrow -- we were rolling out the source package release but uncovered a bug with dbt core that impacts some new functionality in the packages |
Thanks! |
release is live so closing this one out! |
Is there an existing issue for this?
Describe the issue
Here is an extract for a deal that has two different stages:
The stage_ids are properly mapped in
stg_hubspot__deal_pipeline_stage
But then,
hubspot__deal_stages
shows the same id for both stagesRelevant error log or model output
No response
Expected behavior
The first row should have Pipeline_stage_label = New and Deal_pipeline_stage_id = 6309924
dbt Project configurations
Package versions
packages:
version: 0.5.0
version: [">=0.5.0", "<0.6.0"]
What database are you using dbt with?
snowflake
dbt Version
1.1.1
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: