mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-15 09:26:09 +00:00
33 lines
1.0 KiB
JSON
33 lines
1.0 KiB
JSON
{
|
|
"name": "tableCustomSQLQuery",
|
|
"fullyQualifiedName": "tableCustomSQLQuery",
|
|
"displayName": "Custom SQL Query",
|
|
"description": "Test if a custom SQL returns 0 row or `COUNT(<x>) == 0`",
|
|
"entityType": "TABLE",
|
|
"testPlatforms": ["OpenMetadata"],
|
|
"parameterDefinition": [
|
|
{
|
|
"name": "sqlExpression",
|
|
"displayName": "SQL Expression",
|
|
"description": "SQL expression to run against the table",
|
|
"dataType": "STRING",
|
|
"required": "true"
|
|
},
|
|
{
|
|
"name": "strategy",
|
|
"displayName": "Strategy",
|
|
"description": "Strategy to use to run the custom SQL query (i.e. `SELECT COUNT(<col>)` or `SELECT <col> (defaults to ROWS)",
|
|
"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
|
|
}
|
|
]
|
|
}
|
|
|