Sriharsha Chintalapani 45efc76ea1
Fix: Search Slowness when painless scripts aggregates for terms and classifications (#24038)
* Fix: Search Slowness when painless scripts aggregates for terms and classifications

* Fix Sql

* Add fields to security service index

---------

Co-authored-by: mohitdeuex <mohit.y@deuexsolutions.com>
2025-10-28 07:18:32 -07:00

14 lines
430 B
SQL

UPDATE test_definition
SET json = jsonb_set(
json::jsonb,
'{testPlatforms}',
REPLACE(
(json::jsonb -> 'testPlatforms')::text,
'"DBT"',
'"dbt"'
)::jsonb
)::json
WHERE json::jsonb -> 'testPlatforms' @> '"DBT"'::jsonb;
-- Delete searchSettings to force reload from packaged searchSettings.json with field-based aggregations
DELETE FROM openmetadata_settings WHERE configType='searchSettings';