Skip to content

feat(cli): Materialization selectors - #52

Merged
CasperTeirlinck merged 2 commits into
mainfrom
feat/selector
Jul 28, 2026
Merged

feat(cli): Materialization selectors#52
CasperTeirlinck merged 2 commits into
mainfrom
feat/selector

Conversation

@CasperTeirlinck

@CasperTeirlinck CasperTeirlinck commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Sometimes, you want to only materialize/show a subset of the metrics (by default) when running checkup run.

For example you define metrics in your config, where a subset of them are aggregates/derivatives of those other metrics which then provide the most valuable feedback/scoring for a data product (commonly called healthchecks). But you still need to include the underlying metrics in your config. If you provide a config with e.g. the console materializer, you only want to see the healthchecks.
Or it can just be useful for ad-hoc usage of the checkup CLI.

To support this, this PR adds a dbt-style selector mechanism so you can explicitly only include those metrics that make sense to represent in the chosen materialization:

Examples:

  • Filter on name: checkup run --select "healthcheck_*"
  • Filter on tag: checkup run --select "tag:healthcheck"
  • Filter on type: checkup run --select "type:dbt_tests"

In the config you can also set a default select argument:

select: tag:healthcheck
...

Note: the tags field on a Metric were not yet implemented, so this PR also adds that.

@CasperTeirlinck CasperTeirlinck changed the title feat: Materialization selectors feat(cli): Materialization selectors Jul 14, 2026
@CasperTeirlinck
CasperTeirlinck requested a review from jvanbuel July 14, 2026 12:35
@CasperTeirlinck
CasperTeirlinck marked this pull request as ready for review July 14, 2026 12:35
@CasperTeirlinck
CasperTeirlinck merged commit 9120713 into main Jul 28, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants