mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-12 01:08:18 +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
15 lines
550 B
SQL
15 lines
550 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 = JSON_SET (
|
|
JSON_REMOVE (json, '$.connection.config.token'),
|
|
'$.connection.config.authType',
|
|
JSON_OBJECT (
|
|
'token',
|
|
JSON_EXTRACT (json, '$.connection.config.token')
|
|
)
|
|
)
|
|
WHERE
|
|
serviceType in ('Databricks', 'UnityCatalog')
|
|
AND JSON_CONTAINS_PATH(json, 'one', '$.connection.config.token'); |