You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When working through PR #154, a test was written to validate the integrity of the zendesk__sla_policies model. This integrity test is ensuring the row count from the source is matching the expected granular row count of the end model. In short, we want to ensure that all SLAs identified in the source are being reported in the end model. However, in writing this test it became known that one ticket was causing the test to fail.
When investigating the ticket the test is failing on, I can confirm that the 2 row count delta is a result of the agent_work_time and requester_wait_time SLAs are not being brought through to the end model.
I was then able to identify that for both agent_work_time and requester_wait_time SLAs in this instance, the fields are being filtered out within the respective CTEs
I imagine that some of the many updates we have applied to the first_reply_time and next_reply_time SLA policy metrics also need to be applied to the agent_work_time and requester_wait_time SLAs policy metrics.
Relevant error log or model output
14:57:35 Finished running 5 tests, 1 hook in 0 hours 0 minutes and 4.12 seconds (4.12s).
14:57:35
14:57:35 Completed with 1 error and 0 warnings:
14:57:35
14:57:35 Failure intest sla_count_match (tests/integrity/sla_count_match.sql)
14:57:35 Got 1 result, configured to fail if!= 0
14:57:35
14:57:35 compiled Code at target/compiled/zendesk_integration_tests/tests/integrity/sla_count_match.sql
Expected behavior
All supported ('next_reply_time', 'first_reply_time', 'agent_work_time', 'requester_wait_time') SLAs properly identify in the source are accounted for the in end zendesk__sla_policies end model.
The test sla_count_match is passing within our validations.
Is there an existing issue for this?
Describe the issue
When working through PR #154, a test was written to validate the integrity of the
zendesk__sla_policies
model. This integrity test is ensuring the row count from the source is matching the expected granular row count of the end model. In short, we want to ensure that all SLAs identified in the source are being reported in the end model. However, in writing this test it became known that one ticket was causing the test to fail.When investigating the ticket the test is failing on, I can confirm that the 2 row count delta is a result of the
agent_work_time
andrequester_wait_time
SLAs are not being brought through to the end model.I was then able to identify that for both
agent_work_time
andrequester_wait_time
SLAs in this instance, the fields are being filtered out within the respective CTEsI imagine that some of the many updates we have applied to the
first_reply_time
andnext_reply_time
SLA policy metrics also need to be applied to theagent_work_time
andrequester_wait_time
SLAs policy metrics.Relevant error log or model output
Expected behavior
All supported ('next_reply_time', 'first_reply_time', 'agent_work_time', 'requester_wait_time') SLAs properly identify in the source are accounted for the in end
zendesk__sla_policies
end model.The test
sla_count_match
is passing within our validations.dbt Project configurations
Package versions
Latest
What database are you using dbt with?
postgres, redshift, snowflake, bigquery, databricks
dbt Version
Latest
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: