From 157fcd8dcf755f9ab3651b28a83c5faa0927d6ff Mon Sep 17 00:00:00 2001 From: Pere Miquel Brull Date: Tue, 2 Aug 2022 08:45:43 +0200 Subject: [PATCH] DeltaLake does not support profiler (#6495) --- .../v004__create_db_connection_info.sql | 4 ++++ .../org.postgresql.Driver/v004__create_db_connection_info.sql | 4 ++++ .../services/connections/database/deltaLakeConnection.json | 4 ---- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v004__create_db_connection_info.sql b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v004__create_db_connection_info.sql index 0cb97bdf149..8e05d61630b 100644 --- a/bootstrap/sql/com.mysql.cj.jdbc.Driver/v004__create_db_connection_info.sql +++ b/bootstrap/sql/com.mysql.cj.jdbc.Driver/v004__create_db_connection_info.sql @@ -12,6 +12,10 @@ UPDATE dbservice_entity SET json = JSON_REMOVE(json, '$.connection.config.connectionOptions') WHERE serviceType = 'DeltaLake'; +UPDATE dbservice_entity +SET json = JSON_REMOVE(json, '$.connection.config.supportsProfiler') +WHERE serviceType = 'DeltaLake'; + UPDATE dashboard_service_entity SET json = JSON_INSERT( JSON_REMOVE(json, '$.connection.config.username'), diff --git a/bootstrap/sql/org.postgresql.Driver/v004__create_db_connection_info.sql b/bootstrap/sql/org.postgresql.Driver/v004__create_db_connection_info.sql index 9286f54632c..ddaaa078698 100644 --- a/bootstrap/sql/org.postgresql.Driver/v004__create_db_connection_info.sql +++ b/bootstrap/sql/org.postgresql.Driver/v004__create_db_connection_info.sql @@ -12,6 +12,10 @@ UPDATE dbservice_entity SET json = json::jsonb #- '{connection,config,connectionOptions}' where serviceType = 'DeltaLake'; +UPDATE dbservice_entity +SET json = json::jsonb #- '{connection,config,supportsProfiler}' +where serviceType = 'DeltaLake'; + UPDATE dashboard_service_entity SET json = jsonb_set(json, '{connection,config,clientId}', json#>'{connection,config,username}') WHERE serviceType = 'Looker' diff --git a/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/deltaLakeConnection.json b/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/deltaLakeConnection.json index 9cee97ac6a9..4f663f60e39 100644 --- a/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/deltaLakeConnection.json +++ b/catalog-rest-service/src/main/resources/json/schema/entity/services/connections/database/deltaLakeConnection.json @@ -43,10 +43,6 @@ "supportsMetadataExtraction": { "title": "Supports Metadata Extraction", "$ref": "../connectionBasicType.json#/definitions/supportsMetadataExtraction" - }, - "supportsProfiler": { - "title": "Supports Profiler", - "$ref": "../connectionBasicType.json#/definitions/supportsProfiler" } }, "additionalProperties": false