diff --git a/ingestion/src/metadata/test_suite/validations/table/table_custom_sql_query.py b/ingestion/src/metadata/test_suite/validations/table/table_custom_sql_query.py index f1f9093521f..f267b819178 100644 --- a/ingestion/src/metadata/test_suite/validations/table/table_custom_sql_query.py +++ b/ingestion/src/metadata/test_suite/validations/table/table_custom_sql_query.py @@ -75,9 +75,6 @@ def table_custom_sql_query( if not rows: status = TestCaseStatus.Success result_value = 0 - elif len(rows) == 1: - status = TestCaseStatus.Success if rows[0].count == 0 else TestCaseStatus.Failed - result_value = rows[0].count else: status = TestCaseStatus.Failed result_value = len(rows) diff --git a/openmetadata-docs/content/connectors/ingestion/workflows/data-quality/tests.md b/openmetadata-docs/content/connectors/ingestion/workflows/data-quality/tests.md index ce911b5c359..aa7e43caa16 100644 --- a/openmetadata-docs/content/connectors/ingestion/workflows/data-quality/tests.md +++ b/openmetadata-docs/content/connectors/ingestion/workflows/data-quality/tests.md @@ -225,9 +225,8 @@ parameterValues: ``` ### Table Custom SQL Test -Write you own SQL test. The test will pass if either of the following condition is met: +Write you own SQL test. The test will pass if the following condition is met: - The query result return 0 row -- The query expression `COUNT(