-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
expect_table_row_count_to_equal_other_table_times_factor.sql
37 lines (35 loc) · 2.11 KB
/
expect_table_row_count_to_equal_other_table_times_factor.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{%- test expect_table_row_count_to_equal_other_table_times_factor(model,
compare_model,
factor,
group_by=None,
compare_group_by=None,
row_condition=None,
compare_row_condition=None
) -%}
{{ adapter.dispatch('test_expect_table_row_count_to_equal_other_table_times_factor',
'dbt_expectations') (model,
compare_model,
factor,
group_by,
compare_group_by,
row_condition,
compare_row_condition
) }}
{% endtest %}
{%- macro default__test_expect_table_row_count_to_equal_other_table_times_factor(model,
compare_model,
factor,
group_by,
compare_group_by,
row_condition,
compare_row_condition
) -%}
{{ dbt_expectations.test_expect_table_row_count_to_equal_other_table(model,
compare_model,
group_by=group_by,
compare_group_by=compare_group_by,
factor=factor,
row_condition=row_condition,
compare_row_condition=compare_row_condition
) }}
{%- endmacro -%}