Suman Maharana 3e68352936 Chore Ingestion Tableau library change (#21076)
(cherry picked from commit f81ee52ec4942a206ed3ada581a67826384b548a)
2025-05-15 12:19:49 +00:00

33 lines
913 B
SQL

UPDATE test_definition
SET
json = jsonb_insert(
json,
'{parameterDefinition, 2}',
jsonb_build_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', jsonb_build_array('==', '>', '>=', '<', '<=', '!=')
)
)
WHERE
name = 'tableCustomSQLQuery'
AND NOT jsonb_path_exists(
json,
'$.parameterDefinition[*] ? (@.name == "operator")'
);
UPDATE dashboard_service_entity
SET json = jsonb_set(
jsonb_set(
json,
'{connection,config}',
(json->'connection'->'config') - 'siteUrl' - 'apiVersion' - 'env'
),
'{connection}',
json->'connection'
)
WHERE serviceType = 'Tableau';