Skip to content

Commit dc36243

Browse files
authored
Merge pull request #494 from glsdown/add-dropped-fields-primary-key-tests
2 parents 9b88dc7 + 6922c2d commit dc36243

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

models/marts/tests/fct_missing_primary_key_tests.sql

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
with
1+
with
22

33
tests as (
4-
select * from {{ ref('int_model_test_summary') }}
4+
select * from {{ ref('int_model_test_summary') }}
55
where resource_type in
66
(
77
{% for resource_type in var('enforced_primary_key_node_types') %}'{{ resource_type }}'{% if not loop.last %},{% endif %}
@@ -11,8 +11,13 @@ tests as (
1111

1212
final as (
1313

14-
select
15-
resource_name, is_primary_key_tested, number_of_tests_on_model, number_of_constraints_on_model
14+
select
15+
resource_name,
16+
resource_type,
17+
model_type,
18+
is_primary_key_tested,
19+
number_of_tests_on_model,
20+
number_of_constraints_on_model
1621
from tests
1722
where not(is_primary_key_tested)
1823

0 commit comments

Comments
 (0)