Skip to main content
This guide explains how to use dbt’s meta configuration to customize how your dbt resources are displayed and categorized in Coalesce Quality.Prerequisites:
  • A working dbt Core or dbt Cloud integration with Coalesce Quality
  • Familiarity with dbt’s meta configuration

Overview

Coalesce Quality reads custom metadata from your dbt project’s meta configuration to enhance how resources are displayed and organized. By adding specific options to your dbt models and tests, you can:
  • Categorize tests into specific Check categories
  • Improve organization and filtering in the Coalesce Quality interface

Check category

Use the check_category option to assign a dbt test to a specific Check category in Coalesce Quality. This is useful for organizing standalone dbt tests (generic or singular) into meaningful groups.

Configuration

Add the synq configuration to your test’s meta block:

Example: Singular test

For a singular test file (e.g., tests/e2e_order_flow.sql):

Example: Generic test in schema.yml

For generic tests defined in your schema files:

Example: Custom generic test

For custom generic tests, add the config at the top of the test file:

How it works

Coalesce Quality automatically categorizes dbt tests based on the test type and package (e.g., dbt, dbt_expectations, dbt_utils). However, for singular tests or custom generic tests, it may not be able to determine the appropriate category automatically. Using check_category allows you to:
  • Override the automatic categorization for any test
  • Assign meaningful categories to singular tests that would otherwise be uncategorized
  • Group related tests together for better filtering and analysis in Coalesce Quality

Custom categories

You can use any category name that makes sense for your organization. Common examples:

Default categories

Coalesce Quality automatically assigns the following categories to known test types from dbt, dbt_expectations, dbt_utils, and other packages: Setting check_category will override the default categorization for any test.

Best practices

  1. Use custom categories to group tests by business domain or testing strategy
  2. Be consistent with category names across your project
  3. Document your categories so team members understand what each category represents