DataRecce / recce

The dbt data-validation toolkit for teams that care about building better data
https://datarecce.io
Apache License 2.0
226 stars 4 forks source link

[Feature] Support node selector in schema check #365

Closed popcornylu closed 2 months ago

popcornylu commented 2 months ago

Support the schema diff by dbt selector. Currently, it can only be added in the preset check.

# recce.yml
checks:
  - name: Schema diff (modified+)
    type: schema_diff
    params:
      select: 'state:modified+'
  - name: Schema diff (modified+, exclude snapshot)
    type: schema_diff
    params:
      select: 'state:modified+'      
      exclude: 'resource_type:snapshot'
  - name: Schema diff for all nodes
    type: schema_diff
    params:
  - name: schema by node id
    type: schema_diff
    params:
      node_id: model.jaffle_shop.orders

PR checklist

What type of PR is this? Feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

linear[bot] commented 2 months ago

DRC-510 Support Node Selector in Schema Check