Skip to content

Commit

Permalink
Merge pull request #26 from DataRecce/chore/update-default-checks
Browse files Browse the repository at this point in the history
[Chore] Update Recce preset checks
  • Loading branch information
wcchang1115 authored Jul 4, 2024
2 parents 11c0878 + fccb117 commit 71e140e
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions recce.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,16 @@ github:

# Recce Preset Checks
checks:
- name: Model schema of customers
- name: Model schema of customers, orders and modified nodes
description: The schema of customers should not be changed
type: schema_diff
params:
node_id: model.jaffle_shop.customers
- name: Model schema of orders
description: The schema of orders should not be changed
type: schema_diff
params:
node_id: model.jaffle_shop.orders
- name: Row count of customers and orders models
select: customers orders state:modified
- name: Row count of customers, orders and modified table model
description: The row count of customers and order should not be changed
type: row_count_diff
params:
node_names:
- customers
- orders
select: customers orders state:modified,config.materialized:table
- name: Value diff of customers
description: The customer_lifetime_value in customers should be 100% matched
type: value_diff
Expand All @@ -40,7 +33,7 @@ checks:
AVG(customer_lifetime_value) AS avg_lifetime_value
FROM
{{ ref("customers") }}
WHERE first_order is not NULL
WHERE first_order is not NULL
GROUP BY
first_order_week
ORDER BY
Expand Down

0 comments on commit 71e140e

Please sign in to comment.