Merged PR 4530: first comment time added
# Description First comment time added # Checklist - [x] The edited models and dependants run properly with production data. - [x] The edited models are sufficiently documented. - [x] The edited models contain PK tests, and I've ran and passed them. - [ ] I have checked for DRY opportunities with other models and docs. - [ ] I've picked the right materialization for the affected models. # Other - [ ] Check if a full-refresh is required after this PR is merged. first comment time added Related work items: #27812
This commit is contained in:
parent
47fde7de60
commit
42701b4d2c
5 changed files with 29 additions and 0 deletions
|
|
@ -3,6 +3,8 @@
|
|||
-- Many of them don't have the same necessary fields as the current model.
|
||||
-- The same happens with the 'ManualFormWeb' document_version.
|
||||
{% set old_or_manual_documents = ("OLDCLAIMTOINCIDENTMODEL", "MANUALFORMWEB") %}
|
||||
-- Test or cancelled incidents are not considered in the reporting.
|
||||
{% set tests_or_cancelled_incidents = "ARCHIVED" %}
|
||||
|
||||
with
|
||||
raw_incident as (select * from {{ source("resolutions", "incident") }}),
|
||||
|
|
@ -267,3 +269,5 @@ from deduped_verifications
|
|||
where
|
||||
upper({{ adapter.quote("documents") }} ->> 'DocumentVersion')
|
||||
not in {{ old_or_manual_documents }}
|
||||
and upper({{ adapter.quote("documents") }} ->> 'CurrentStatusName')
|
||||
<> '{{ tests_or_cancelled_incidents }}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue