mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-07-07 09:09:30 +00:00
19 lines
605 B
MySQL
19 lines
605 B
MySQL
![]() |
UPDATE test_definition
|
||
|
SET json = JSON_ARRAY_INSERT(
|
||
|
json,
|
||
|
'$.parameterDefinition[2]',
|
||
|
JSON_OBJECT(
|
||
|
'name', 'operator',
|
||
|
'displayName', 'Operator',
|
||
|
'description', 'Operator to use to compare the result of the custom SQL query to the threshold.',
|
||
|
'dataType', 'STRING',
|
||
|
'required', false,
|
||
|
'optionValues', JSON_ARRAY('==', '>', '>=', '<', '<=', '!=')
|
||
|
)
|
||
|
)
|
||
|
WHERE NOT JSON_CONTAINS(
|
||
|
JSON_EXTRACT(json, '$.parameterDefinition[*].name'),
|
||
|
JSON_QUOTE('operator')
|
||
|
) AND name = 'tableCustomSQLQuery';
|
||
|
|