[GEN-970] added supportsSystemProfile to connector (#18203)

* added supportsSystemProfile to connector

* reverted unintended changes

* added supportsSystemProfile for bigquery
This commit is contained in:
Imri Paran 2024-10-22 07:39:18 +02:00 committed by GitHub
parent edf386d2a5
commit d0fb5137af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 28 additions and 0 deletions

View File

@ -48,3 +48,9 @@ ALTER TABLE apps_extension_time_series ADD COLUMN appName VARCHAR(256) GENERATED
UPDATE dbservice_entity
SET json = JSON_SET(json, '$.connection.config.supportsDataDiff', 'true')
WHERE serviceType IN ('Athena','BigQuery','Mssql','Mysql','Oracle','Postgres','Redshift','SapHana','Snowflake','Trino');
-- Add supportsSystemProfile for Snowflake, Redshift, and BigQuery
update dbservice_entity
set json = JSON_SET(json, '$.connection.config.supportsSystemProfile', true)
where serviceType in ('Snowflake', 'Redshift', 'BigQuery');

View File

@ -65,3 +65,8 @@ ALTER TABLE apps_extension_time_series ADD COLUMN appName VARCHAR(256) GENERATED
UPDATE dbservice_entity
SET json = jsonb_set(json::jsonb, '{connection,config,supportsDataDiff}', 'true'::jsonb)
WHERE serviceType IN ('Athena','BigQuery','Mssql','Mysql','Oracle','Postgres','Redshift','SapHana','Snowflake','Trino');
-- Add supportsSystemProfile for Snowflake, Redshift, and BigQuery
UPDATE dbservice_entity
SET json = jsonb_set(json::jsonb, '{connection,config,supportsSystemProfile}', 'true'::jsonb)
WHERE serviceType IN ('Snowflake', 'Redshift', 'BigQuery');

View File

@ -50,6 +50,11 @@
"type": "boolean",
"default": true
},
"supportsSystemProfile": {
"description": "The source database supports system profiles for tables such as last update.",
"type": "boolean",
"default": false
},
"supportsDataInsightExtraction": {
"description": "Support Metadata To Elastic Search",
"type": "boolean",

View File

@ -101,6 +101,10 @@
"title": "Supports Query Comment",
"$ref": "../connectionBasicType.json#/definitions/supportsQueryComment"
},
"supportsSystemProfile": {
"title": "Supports System Profile",
"$ref": "../connectionBasicType.json#/definitions/supportsSystemProfile"
},
"sampleDataStorageConfig": {
"title": "Storage Config for Sample Data",
"$ref": "../connectionBasicType.json#/definitions/sampleDataStorageConfig"

View File

@ -102,6 +102,10 @@
"title": "Supports Query Comment",
"$ref": "../connectionBasicType.json#/definitions/supportsQueryComment"
},
"supportsSystemProfile": {
"title": "Supports System Profile",
"$ref": "../connectionBasicType.json#/definitions/supportsSystemProfile"
},
"sampleDataStorageConfig": {
"title": "Storage Config for Sample Data",
"$ref": "../connectionBasicType.json#/definitions/sampleDataStorageConfig"

View File

@ -125,6 +125,10 @@
"title": "Supports Query Comment",
"$ref": "../connectionBasicType.json#/definitions/supportsQueryComment"
},
"supportsSystemProfile": {
"title": "Supports System Profile",
"$ref": "../connectionBasicType.json#/definitions/supportsSystemProfile"
},
"sampleDataStorageConfig": {
"title": "Storage Config for Sample Data",
"$ref": "../connectionBasicType.json#/definitions/sampleDataStorageConfig"