2022-07-28 13:58:41 -07:00
|
|
|
{
|
|
|
|
|
"name": "tableCustomSQLQuery",
|
2022-11-21 22:50:33 -08:00
|
|
|
"fullyQualifiedName": "tableCustomSQLQuery",
|
2022-09-16 07:04:56 +02:00
|
|
|
"displayName": "Custom SQL Query",
|
|
|
|
|
"description": "Test if a custom SQL returns 0 row or `COUNT(<x>) == 0`",
|
2022-08-04 07:22:47 -07:00
|
|
|
"entityType": "TABLE",
|
2022-09-16 07:04:56 +02:00
|
|
|
"testPlatforms": ["OpenMetadata"],
|
2022-07-28 13:58:41 -07:00
|
|
|
"parameterDefinition": [
|
|
|
|
|
{
|
|
|
|
|
"name": "sqlExpression",
|
2022-09-16 07:04:56 +02:00
|
|
|
"displayName": "SQL Expression",
|
2022-07-28 13:58:41 -07:00
|
|
|
"description": "SQL expression to run against the table",
|
|
|
|
|
"dataType": "STRING",
|
|
|
|
|
"required": "true"
|
2023-06-02 09:41:31 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "strategy",
|
|
|
|
|
"displayName": "Strategy",
|
2023-06-28 18:02:49 +02:00
|
|
|
"description": "Strategy to use to run the custom SQL query (i.e. `SELECT COUNT(<col>)` or `SELECT <col> (defaults to ROWS)",
|
2023-06-02 09:41:31 +02:00
|
|
|
"dataType": "ARRAY",
|
|
|
|
|
"optionValues": ["ROWS", "COUNT"],
|
|
|
|
|
"required": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "threshold",
|
|
|
|
|
"displayName": "Threshold",
|
|
|
|
|
"description": "Threshold to use to determine if the test passes or fails (defaults to 0).",
|
|
|
|
|
"dataType": "NUMBER",
|
|
|
|
|
"required": false
|
2022-07-28 13:58:41 -07:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|