-
Notifications
You must be signed in to change notification settings - Fork 25
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] Fivetran UI data differs from Fivetran Log data #63
Comments
Hi @JadAbdallah thanks so much for opening this issue and sorry to hear your totals are off between the package totals and the UI. Are the totals consistently off, or is this only happening for the current month? |
@fivetran-joemarkiewicz It's consistent! |
Just curious, do these totals seem to be consistently higher or lower than what is listed on the Fivetran UI? |
Consistently lower, by around 100 units (for dollars spent). I looked at whether it was a a consistent extra X, due to perhaps an additional parameter in the calculation, but it fluctuated |
@JadAbdallah thanks for these additional details. I have actually been looking into a new table that was rolled out to our Fivetran Log package which may be the reason you are seeing some issue with the end models. A new table As such, I have opened Issue #65 to look into this further. I will look into this some more the rest of this week (and into next) and hope to have something for you to try and that could fix this issue. Before I dig deeper into this new table, can you confirm if you have the |
I dont' see it actually, but do see the active_volume table. |
Hmmm 🤔 Do you know if you have any free MAR or credits? I know the |
Do you know why I don't have the |
I know this Would you be open to sharing a screenshot of the usage the Fivetran UI is showing for a period, and the relevant output of the dbt package? If you are uncomfortable sharing in an open GitHub Issue, you can start a private support ticket where we chan discuss off a public forum if you desired. |
Thanks for sharing this @JadAbdallah. I have tried digging into the logic on my end and am having some trouble identifying an issue. I think this may be easier and more efficient to solve directly on a call. Would you be open to scheduling some time with my team and I using our Calendly link? This way we may debug the variance live on a call. |
Done! |
Following up on this issue. I'm having a similar problem, but with a much larger variance. Our MAR for November was upwards of 12MM, yet the FIVETRAN_LOG__USAGE_MAR_DESTINATION_HISTORY table is showing approximately 600K mar. I can open a new issue, if necessary. |
Hi @pkanter happy to keep the conversation here. Would you be able to share which version of the package you are using? |
I'm using 0.7.0.
…On Mon, Feb 6, 2023 at 2:39 PM Joe Markiewicz ***@***.***> wrote:
Hi @pkanter <https://github.com/pkanter> happy to keep the conversation
here.
Would you be able to share which version of the package you are using?
—
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKLZQ2OOYVKKACFNDADTLTWWFHOJANCNFSM6AAAAAAQ3AJ5AI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks @pkanter. We released a few updates in 0.7.0 that added some more nuance to the MAR calculation (specifically free vs paid MAR). What field in the package are you using to calculate your MAR? I wonder if you may only be using the paid MAR, but the sum of paid and free may equate to the 12MM you are seeing? |
@fivetran-joemarkiewicz , I'm taking the number directly from the Usage MAR Destnation History table in the fivetran_log package. The dollars are correct, but the rows are off considerably. The sum of free and paid don't even come to ten percent of the 12MM, at 94k and 606k respectively. |
This statement jumps out the most to me 🤔. I would assume that if the MAR is off then the dollars spent would be as well. I think it may make the most sense if you schedule some time with my team to investigate this live on a call. You can book time here. In the meantime, I will continue to investigate. |
Will do. Keep me posted.
|
One thought...the INCREMENTAL_MAR table is only a staging table right now, no final production table is derived from it. The numbers are correct there. |
Thanks for adding that note. The latest version of the package should be leveraging the incremental_mar table through to the final model. See here for how the staging model should flow through to the final usage_mar_destination_history model. I know you mentioned you are using v0.7.0, but are there any other configs in your dbt_project.yml that may be causing it to not flow to the final downstream models? |
The only vars related to the fivetran_log package are "using_transformations" and "using_triggers" which are both false. |
Are there any model configs related to the fivetran_log package? |
No, forgot to mention that. |
Thanks for the additional details. I will continue to look into this. I also appreciate you setting up some time with us for this week. We can go into more debugging then! |
Thanks for meeting with our team @pkanter! Recapping our meeting, we discovered that this line in the fivetran_log__mar_table_history model is erroneously filtering out records from the incremental_mar staging model. This line was required with the active_volume staging model. However, since that field was deprecated and replaced with incremental_mar, we no longer need to account for the cumulative totals. Instead, we need to include the previous records to accurately total the mar per connector. I will soon open a PR to address this issue. |
Good talking with you and the team today. Glad I could help squash a bug.
*From:* Joe Markiewicz ***@***.***>
*Sent:* Thursday, February 9, 2023 2:33 PM
*To:* fivetran/dbt_fivetran_log ***@***.***>
*Cc:* Paul Kanterman ***@***.***>; Mention <
***@***.***>
*Subject:* Re: [fivetran/dbt_fivetran_log] [Bug] Fivetran UI data differs
from Fivetran Log data (Issue #63)
Thanks for meeting with our team @pkanter <https://github.com/pkanter>!
Recapping our meeting, we discovered that this line
<https://github.com/fivetran/dbt_fivetran_log/blob/226deff6d4f10b19bad5ccff1a6bc6813e809fe7/models/fivetran_log__mar_table_history.sql#L60>
in the fivetran_log__mar_table_history model is erroneously filtering out
records from the incremental_mar staging model.
This line was required with the active_volume staging model. However, since
that field was deprecated and replaced with incremental_mar, we no longer
need to account for the cumulative totals. Instead, we need to include the
previous records to accurately total the mar per connector.
I will soon open a PR to address this issue.
—
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKLZQ4TH46VABVZJV6LQDDWWVA5DANCNFSM6AAAAAAQ3AJ5AI>
.
You are receiving this because you were mentioned.Message ID: <
***@***.***>
|
Hi all, I wanted to post back to let you know that the changes were merged and a new v0.7.1 release has been cut! You should see this live at the top of the hour. As the issue has been addressed in the latest release, I will close this issue. |
Thanks for the fix, Joe.
*From:* Joe Markiewicz ***@***.***>
*Sent:* Wednesday, February 15, 2023 3:13 PM
*To:* fivetran/dbt_fivetran_log ***@***.***>
*Cc:* Paul Kanterman ***@***.***>; Mention <
***@***.***>
*Subject:* Re: [fivetran/dbt_fivetran_log] [Bug] Fivetran UI data differs
from Fivetran Log data (Issue #63)
Hi all,
I wanted to post back to let you know that the changes were merged and a
new v0.7.1 release has been cut! You should see this live at the top of the
hour.
As the issue has been addressed in the latest release, I will close this
issue.
—
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKLZQ3USOHAZEBW6YCYCZTWXU2F3ANCNFSM6AAAAAAQ3AJ5AI>
.
You are receiving this because you were mentioned.Message ID: <
***@***.***>
|
@fivetran-joemarkiewicz , I've updated to the 0.7.1 version of the package. when I ran dbt build, a unique_combination_of_columns test fails. The full message is below...
|
Thanks so much for sharing @pkanter. I am unsure how this test failure did not arise in our development but it looks like another eagle eyed user caught this as well and raised it within Issue #73 and proposed a fix within PR #74. We are working to address these in a timely manner. I hope to post a test branch in the issue as soon as possible. It would be great if you were open to following there and ensuring you see success before rolling out an 0.7.2 patch. |
@pkanter cross posting this comment from the other thread if you are available to test before we roll out the patch - packages:
- git: https://github.com/simon-stepper/dbt_fivetran_log.git
revision: 73-duplicated-months
warn-unpinned: false |
Is there an existing issue for this?
Describe the issue
I am seeing discrepancies between some of the usage metrics in the Fivetran UI versus the Logs from the dbt package. This includes dollars spent and MARs. The amount in Fivetran is always slightly higher. The plan rate ($/M) is slightly higher in the dbt logs as well. I'm assuming some of these fields are a result of a mathematical formula, so perhas one of the values is off.
I am querying the data from
fivetran_log__usage_mar_destination_history
and am on the latest version of the package (0.6.3).Note however that MARs are also off when querying from
fivetran_log__mar_table_history
Relevant error log or model output
No response
Expected behavior
Expect values to be identical for same period
dbt Project configurations
/
Package versions
0.6.3
What database are you using dbt with?
snowflake
dbt Version
1.2.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: