diff --git a/website/docs/docs/build/data-tests.md b/website/docs/docs/build/data-tests.md index d981d7e272d..0806842a85c 100644 --- a/website/docs/docs/build/data-tests.md +++ b/website/docs/docs/build/data-tests.md @@ -43,13 +43,13 @@ These tests are defined in `.sql` files, typically in your `tests` directory (as ```sql -- Refunds have a negative amount, so the total amount should always be >= 0. --- Therefore return records where this isn't true to make the test fail +-- Therefore return records where total_amount < 0 to make the test fail. select order_id, sum(amount) as total_amount from {{ ref('fct_payments' )}} group by 1 -having not(total_amount >= 0) +having total_amount < 0 ``` @@ -247,7 +247,7 @@ This workflow allows you to query and examine failing records much more quickly -Note that, if you elect to store test failures: +Note that, if you select to store test failures: * Test result tables are created in a schema suffixed or named `dbt_test__audit`, by default. It is possible to change this value by setting a `schema` config. (For more details on schema naming, see [using custom schemas](/docs/build/custom-schemas).) - A test's results will always **replace** previous failures for the same test. diff --git a/website/docs/docs/build/metricflow-commands.md b/website/docs/docs/build/metricflow-commands.md index 675a2d056ac..4693aa1a774 100644 --- a/website/docs/docs/build/metricflow-commands.md +++ b/website/docs/docs/build/metricflow-commands.md @@ -75,7 +75,7 @@ You can use the `dbt sl` prefix before the command name to execute them in the d - [`list dimensions`](#list) — Lists unique dimensions for metrics. - [`list dimension-values`](#list-dimension-values) — List dimensions with metrics. - [`list entities`](#list-entities) — Lists all unique entities. -- [`list saved queries`)(#list-saved-queries) — Lists available saved queries. Use the `--show-exports` flag to display each export listed under a saved query. +- [`list saved queries`](#list-saved-queries) — Lists available saved queries. Use the `--show-exports` flag to display each export listed under a saved query. - [`query`](#query) — Query metrics, saved queries, and dimensions you want to see in the command line interface. Refer to [query examples](#query-examples) to help you get started.