mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-18 14:06:59 +00:00
added migration scripts for druid and postgres docs update (#10920)
* added migration scripts for druid and postgres docs update * postgres docs update
This commit is contained in:
parent
9b4e9132ae
commit
325480fb2e
@ -134,3 +134,11 @@ CREATE TABLE IF NOT EXISTS dashboard_data_model_entity (
|
|||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
UNIQUE (fullyQualifiedName)
|
UNIQUE (fullyQualifiedName)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
UPDATE dbservice_entity
|
||||||
|
SET json = JSON_INSERT(
|
||||||
|
JSON_REMOVE(json, '$.connection.config.database'),
|
||||||
|
'$.connection.config.databaseName', JSON_EXTRACT(json, '$.connection.config.database')
|
||||||
|
)
|
||||||
|
where serviceType = 'Druid'
|
||||||
|
and JSON_EXTRACT(json, '$.connection.config.database') is not null;
|
@ -138,3 +138,7 @@ CREATE TABLE IF NOT EXISTS dashboard_data_model_entity (
|
|||||||
PRIMARY KEY (id),
|
PRIMARY KEY (id),
|
||||||
UNIQUE (fullyQualifiedName)
|
UNIQUE (fullyQualifiedName)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
UPDATE dbservice_entity
|
||||||
|
SET json = jsonb_set(json::jsonb #- '{connection,config,database}', '{connection,config,databaseName}', json#> '{connection,config,database}', true)
|
||||||
|
WHERE servicetype = 'Druid' and json #>'{connection,config,database}' is not null;
|
@ -59,10 +59,18 @@ Then, when extracting usage and lineage data, the query log duration will have n
|
|||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
|
||||||
- For usage and lineage grant your user `pg_read_all_stats` permission.
|
#### For usage and lineage grant your user required permission.
|
||||||
|
|
||||||
|
- For Postgres version 14 and above
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
GRANT pg_read_all_stats TO your_user;
|
GRANT pg_read_all_stats TO your_user;
|
||||||
|
```
|
||||||
|
|
||||||
|
- For any other Postgres version
|
||||||
|
|
||||||
|
```sql
|
||||||
|
GRANT USAGE ON SCHEMA public TO my_user;
|
||||||
```
|
```
|
||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
@ -59,10 +59,18 @@ Then, when extracting usage and lineage data, the query log duration will have n
|
|||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
|
||||||
- For usage and lineage grant your user `pg_read_all_stats` permission.
|
#### For usage and lineage grant your user required permission.
|
||||||
|
|
||||||
|
- For Postgres version 14 and above
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
GRANT pg_read_all_stats TO your_user;
|
GRANT pg_read_all_stats TO your_user;
|
||||||
|
```
|
||||||
|
|
||||||
|
- For any other Postgres version
|
||||||
|
|
||||||
|
```sql
|
||||||
|
GRANT USAGE ON SCHEMA public TO my_user;
|
||||||
```
|
```
|
||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
@ -80,10 +80,18 @@ Then, when extracting usage and lineage data, the query log duration will have n
|
|||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
|
||||||
- For usage and lineage grant your user `pg_read_all_stats` permission.
|
#### For usage and lineage grant your user required permission.
|
||||||
|
|
||||||
|
- For Postgres version 14 and above
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
GRANT pg_read_all_stats TO your_user;
|
GRANT pg_read_all_stats TO your_user;
|
||||||
|
```
|
||||||
|
|
||||||
|
- For any other Postgres version
|
||||||
|
|
||||||
|
```sql
|
||||||
|
GRANT USAGE ON SCHEMA public TO my_user;
|
||||||
```
|
```
|
||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
@ -22,10 +22,18 @@ Then, when extracting usage and lineage data, the query log duration will have n
|
|||||||
|
|
||||||
<Note>
|
<Note>
|
||||||
|
|
||||||
- For usage and lineage grant your user `pg_read_all_stats` permission.
|
#### For usage and lineage grant your user required permission.
|
||||||
|
|
||||||
|
- For Postgres version 14 and above
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
GRANT pg_read_all_stats TO your_user;
|
GRANT pg_read_all_stats TO your_user;
|
||||||
|
```
|
||||||
|
|
||||||
|
- For any other Postgres version
|
||||||
|
|
||||||
|
```sql
|
||||||
|
GRANT USAGE ON SCHEMA public TO my_user;
|
||||||
```
|
```
|
||||||
|
|
||||||
</Note>
|
</Note>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user