From 92f8fa4082791d46c71e8ea70ae80658f4e67bce Mon Sep 17 00:00:00 2001 From: Rounak Dhillon <162090200+RounakDhillon@users.noreply.github.com> Date: Tue, 18 Mar 2025 11:39:27 +0530 Subject: [PATCH] Docs: Note Addition in Custom SQL Test (#20310) Co-authored-by: Rounak Dhillon Co-authored-by: Prajwal214 <167504578+Prajwal214@users.noreply.github.com> --- .../data-quality-observability/quality/tests-yaml.md | 7 +++++++ .../data-quality-observability/quality/tests-yaml.md | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/openmetadata-docs/content/v1.6.x/how-to-guides/data-quality-observability/quality/tests-yaml.md b/openmetadata-docs/content/v1.6.x/how-to-guides/data-quality-observability/quality/tests-yaml.md index cfcd682b882..e1434a6499b 100644 --- a/openmetadata-docs/content/v1.6.x/how-to-guides/data-quality-observability/quality/tests-yaml.md +++ b/openmetadata-docs/content/v1.6.x/how-to-guides/data-quality-observability/quality/tests-yaml.md @@ -322,6 +322,13 @@ Write you own SQL test. When writting your query you can use 2 strategies: **How to use the Threshold Parameter?** The threshold allows you to define a limit for which you test should pass or fail - by defaut this number is 0. For example if my custom SQL query test returns 10 rows (or a COUNT value of 10) and my threshold is 5 the test will fail. If I update my threshold to 11 on my next run my test will pass. +{% note %} + +- When configuring a **Table Custom SQL Test**, specify the table using the format `database.schema.table`. +- Using only the table name may not work, as it depends on the SQL engine's requirements. + +{% /note %} + **Properties** * `sqlExpression`: SQL expression diff --git a/openmetadata-docs/content/v1.7.x-SNAPSHOT/how-to-guides/data-quality-observability/quality/tests-yaml.md b/openmetadata-docs/content/v1.7.x-SNAPSHOT/how-to-guides/data-quality-observability/quality/tests-yaml.md index cfcd682b882..e1434a6499b 100644 --- a/openmetadata-docs/content/v1.7.x-SNAPSHOT/how-to-guides/data-quality-observability/quality/tests-yaml.md +++ b/openmetadata-docs/content/v1.7.x-SNAPSHOT/how-to-guides/data-quality-observability/quality/tests-yaml.md @@ -322,6 +322,13 @@ Write you own SQL test. When writting your query you can use 2 strategies: **How to use the Threshold Parameter?** The threshold allows you to define a limit for which you test should pass or fail - by defaut this number is 0. For example if my custom SQL query test returns 10 rows (or a COUNT value of 10) and my threshold is 5 the test will fail. If I update my threshold to 11 on my next run my test will pass. +{% note %} + +- When configuring a **Table Custom SQL Test**, specify the table using the format `database.schema.table`. +- Using only the table name may not work, as it depends on the SQL engine's requirements. + +{% /note %} + **Properties** * `sqlExpression`: SQL expression