mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-03 12:53:53 +00:00
Fix impala migration query (#12809)
This commit is contained in:
parent
2b214190c7
commit
71df43fdab
@ -36,7 +36,8 @@ WHERE serviceType in ('Snowflake') AND JSON_EXTRACT(json, '$.connection.config.i
|
|||||||
|
|
||||||
UPDATE dbservice_entity
|
UPDATE dbservice_entity
|
||||||
SET json = JSON_REPLACE(json, '$.connection.config.scheme', 'hive')
|
SET json = JSON_REPLACE(json, '$.connection.config.scheme', 'hive')
|
||||||
WHERE JSON_EXTRACT(json, '$.connection.config.scheme') IN ('impala', 'impala4');
|
WHERE JSON_EXTRACT(json, '$.connection.config.scheme') IN ('impala', 'impala4')
|
||||||
|
AND serviceType = 'Hive';
|
||||||
|
|
||||||
-- remove the dataModel references from Data Models
|
-- remove the dataModel references from Data Models
|
||||||
UPDATE dashboard_data_model_entity
|
UPDATE dashboard_data_model_entity
|
||||||
|
@ -32,7 +32,8 @@ where serviceType in ('Snowflake') and json#>'{connection,config,includeTempTabl
|
|||||||
|
|
||||||
update dbservice_entity
|
update dbservice_entity
|
||||||
set json = jsonb_set(json::jsonb, '{connection,config,scheme}', '"hive"')
|
set json = jsonb_set(json::jsonb, '{connection,config,scheme}', '"hive"')
|
||||||
where json#>>'{connection,config,scheme}' in ('impala', 'impala4');
|
where json#>>'{connection,config,scheme}' in ('impala', 'impala4')
|
||||||
|
and serviceType = 'Hive';
|
||||||
|
|
||||||
-- remove the dataModel references from Data Models
|
-- remove the dataModel references from Data Models
|
||||||
UPDATE dashboard_data_model_entity SET json = json #- '{dataModels}';
|
UPDATE dashboard_data_model_entity SET json = json #- '{dataModels}';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user