2022-12-27 19:09:17 +01:00
|
|
|
RENAME TABLE tag_category TO classification;
|
|
|
|
|
|
|
|
-- Rename tagCategoryName in BigQuery for classificationName
|
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = JSON_INSERT(
|
|
|
|
JSON_REMOVE(json, '$.connection.config.tagCategoryName'),
|
|
|
|
'$.connection.config.classificationName',
|
|
|
|
JSON_EXTRACT(json, '$.connection.config.tagCategoryName')
|
|
|
|
) where serviceType in ('BigQuery');
|
|
|
|
|
|
|
|
-- Deprecate SampleData db service type
|
|
|
|
DELETE er
|
|
|
|
FROM entity_relationship er
|
|
|
|
JOIN dbservice_entity db
|
|
|
|
ON db.id = er.fromId
|
|
|
|
OR db.id = er.toId
|
|
|
|
WHERE db.serviceType = 'SampleData';
|
|
|
|
|
|
|
|
DELETE FROM dbservice_entity where serviceType = 'SampleData';
|
2023-01-05 12:03:07 +05:30
|
|
|
|
|
|
|
-- Delete supportsUsageExtraction from vertica
|
|
|
|
UPDATE dbservice_entity
|
|
|
|
SET json = JSON_REMOVE(json, '$.connection.config.supportsUsageExtraction')
|
|
|
|
WHERE serviceType = 'Vertica';
|
2023-01-06 11:08:21 +05:30
|
|
|
|
|
|
|
UPDATE ingestion_pipeline_entity
|
|
|
|
SET json = JSON_REMOVE(json ,'$.sourceConfig.config.dbtConfigSource.dbtUpdateDescriptions')
|
|
|
|
WHERE json -> '$.sourceConfig.config.type' = 'DBT';
|