mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-15 02:38:42 +00:00

* feat: databricks oauth and azure ad auth setup * refactor: add auth type changes in databricks.md * fix: test after oauth changes * refactor: unity catalog connection to databricks connection code * feat: added oauth and azure ad for unity catalog * fix: unitycatalog tests, doc & required type in connection.json * fix: generated tx files * fix: exporter databricksConnection file * refactor: unitycatalog example file * fix: usage example files * fix: unity catalog sqlalchemy connection * fix: unity catalog client headers * refactor: make common auth.py for dbx and unitycatalog * fix: auth functions import * fix: test unity catalog tags as None * fix: type hinting and sql migration * fix: migration for postgres
13 lines
480 B
SQL
13 lines
480 B
SQL
-- Migration script to restructure Databricks connection configuration
|
|
-- Move 'token' field from connection.config.token to connection.config.authType.token
|
|
|
|
UPDATE dbservice_entity
|
|
SET json = jsonb_set(
|
|
json #- '{connection,config,token}',
|
|
'{connection,config,authType}',
|
|
jsonb_build_object('token', json #> '{connection,config,token}'),
|
|
true
|
|
)
|
|
WHERE serviceType in ('Databricks', 'UnityCatalog')
|
|
AND jsonb_exists(json -> 'connection' -> 'config', 'token');
|