-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8248 from mandy-chessell/oak2024
New Unity Catalog resource connector
- Loading branch information
Showing
74 changed files
with
6,296 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...en-connectors/data-manager-connectors/unity-catalog-connectors/UnityCatalog-catalogs.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
|
||
@ucURL=http://localhost:8080 | ||
|
||
### | ||
# @name list catalogs | ||
GET {{ucURL}}/api/2.1/unity-catalog/catalogs?max_results=1 | ||
|
||
### | ||
# @name create catalog | ||
POST {{ucURL}}/api/2.1/unity-catalog/catalogs | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "test3", | ||
"comment": "Test catalog3", | ||
"properties": { | ||
"egeriaGUID" : "c14d6b99-7202-4f04-a05d-49f0fdd7373d" | ||
} | ||
} | ||
|
||
### | ||
# @name get catalog | ||
GET {{ucURL}}/api/2.1/unity-catalog/catalogs/test3 | ||
Content-Type: application/json | ||
|
||
|
||
### | ||
# @name patch catalog | ||
PATCH {{ucURL}}/api/2.1/unity-catalog/catalogs/test4 | ||
Content-Type: application/json | ||
|
||
{ | ||
"comment" : "This is a comment", | ||
"properties": { | ||
"egeriaGUID" : "c14d6b99-7202-4f04-a05d-49f0fdd7373d" | ||
} | ||
} | ||
|
||
### | ||
# @name rename catalog | ||
PATCH {{ucURL}}/api/2.1/unity-catalog/catalogs/test3_temp | ||
Content-Type: application/json | ||
|
||
{ | ||
"new_name" : "test4", | ||
"comment" : "This is a new comment", | ||
"properties": { | ||
"egeriaGUID" : "c14d6b99-7202-4f04-a05d-49f0fdd7373d" | ||
} | ||
} | ||
|
||
### | ||
# @name delete catalog | ||
DELETE {{ucURL}}/api/2.1/unity-catalog/catalogs/test3 | ||
Content-Type: application/json | ||
|
37 changes: 37 additions & 0 deletions
37
...n-connectors/data-manager-connectors/unity-catalog-connectors/UnityCatalog-functions.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
@ucURL=http://localhost:8080 | ||
|
||
### | ||
# @name list functions | ||
GET {{ucURL}}/api/2.1/unity-catalog/functions?catalog_name=test&schema_name=test4schema1&max_results=10 | ||
|
||
### | ||
# @name create function | ||
POST {{ucURL}}/api/2.1/unity-catalog/functions | ||
Content-Type: application/json | ||
|
||
{ | ||
"function_info" : | ||
{ | ||
"name": "createWisdom", | ||
"catalog_name" : "test", | ||
"schema_name" : "test4schema1", | ||
"comment": "Test catalog4 function 1", | ||
"parameter_style" : "S", | ||
"routine_body" : "EXTERNAL", | ||
"external_language" : "Java", | ||
"security_type" : "DEFINER" | ||
} | ||
} | ||
|
||
### | ||
# @name get function | ||
GET {{ucURL}}/api/2.1/unity-catalog/functions/test.test4schema1.createWisdom | ||
Content-Type: application/json | ||
|
||
|
||
### | ||
# @name delete function | ||
DELETE {{ucURL}}/api/2.1/unity-catalog/functions/test.test4schema1.createWisdom | ||
Content-Type: application/json | ||
|
45 changes: 45 additions & 0 deletions
45
...pen-connectors/data-manager-connectors/unity-catalog-connectors/UnityCatalog-schemas.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
@ucURL=http://localhost:8080 | ||
|
||
### | ||
# @name list schemas | ||
GET {{ucURL}}/api/2.1/unity-catalog/schemas?catalog_name=unity&max_results=10 | ||
|
||
### | ||
# @name create schema | ||
POST {{ucURL}}/api/2.1/unity-catalog/schemas | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "test4schema1", | ||
"catalog_name" : "test", | ||
"comment": "Test catalog4 schema 1", | ||
"properties": { | ||
"egeriaGUID" : "c14d6b99-7202-4f04-a05d-49f0fdd7373d" | ||
} | ||
} | ||
|
||
### | ||
# @name get schema | ||
GET {{ucURL}}/api/2.1/unity-catalog/schemas/test.test4schema1 | ||
Content-Type: application/json | ||
|
||
|
||
### | ||
# @name patch schema | ||
PATCH {{ucURL}}/api/2.1/unity-catalog/schemas/test.test4schema2 | ||
Content-Type: application/json | ||
|
||
{ | ||
"new_name" : "test4schema1", | ||
"comment" : "This is a comment", | ||
"properties": { | ||
"egeriaGUID" : "c14d6b99-7202-4f04-a05d-49f0fdd7373d" | ||
} | ||
} | ||
|
||
### | ||
# @name delete schema | ||
DELETE {{ucURL}}/api/2.1/unity-catalog/schemas/test.test4schema1 | ||
Content-Type: application/json | ||
|
37 changes: 37 additions & 0 deletions
37
...open-connectors/data-manager-connectors/unity-catalog-connectors/UnityCatalog-tables.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
|
||
@ucURL=http://localhost:8080 | ||
|
||
### | ||
# @name list tables | ||
GET {{ucURL}}/api/2.1/unity-catalog/tables?catalog_name=test&schema_name=test4schema1&max_results=10 | ||
|
||
### | ||
# @name create table | ||
POST {{ucURL}}/api/2.1/unity-catalog/tables | ||
Content-Type: application/json | ||
|
||
{ | ||
"table_info" : | ||
{ | ||
"name": "bookOfKnowledge", | ||
"catalog_name" : "test", | ||
"schema_name" : "test4schema1", | ||
"comment": "Useful data", | ||
"parameter_style" : "S", | ||
"routine_body" : "EXTERNAL", | ||
"external_language" : "Java", | ||
"security_type" : "DEFINER" | ||
} | ||
} | ||
|
||
### | ||
# @name get table | ||
GET {{ucURL}}/api/2.1/unity-catalog/tables/test.test4schema1.createWisdom | ||
Content-Type: application/json | ||
|
||
|
||
### | ||
# @name delete table | ||
DELETE {{ucURL}}/api/2.1/unity-catalog/tables/test.test4schema1.createWisdom | ||
Content-Type: application/json | ||
|
42 changes: 42 additions & 0 deletions
42
...pen-connectors/data-manager-connectors/unity-catalog-connectors/UnityCatalog-volumes.http
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
@ucURL=http://localhost:8080 | ||
|
||
### | ||
# @name list volumes | ||
GET {{ucURL}}/api/2.1/unity-catalog/volumes?catalog_name=unity&schema_name=default&max_results=10 | ||
|
||
### | ||
# @name create volume | ||
POST {{ucURL}}/api/2.1/unity-catalog/volumes | ||
Content-Type: application/json | ||
|
||
{ | ||
"name": "test4volume1", | ||
"catalog_name" : "test", | ||
"schema_name": "test4schema1", | ||
"comment": "Test catalog4 volume 1", | ||
"volume_type": "EXTERNAL", | ||
"storage_location": "file:///Users/me/Code/uc/unitycatalog/etc/data/external/unity/default/volumes/json_files/" | ||
} | ||
|
||
### | ||
# @name get volume | ||
GET {{ucURL}}/api/2.1/unity-catalog/volumes/test.test4schema1.volume1 | ||
Content-Type: application/json | ||
|
||
|
||
### | ||
# @name patch volume | ||
PATCH {{ucURL}}/api/2.1/unity-catalog/volumes/test.test4schema1.test4volume1 | ||
Content-Type: application/json | ||
|
||
{ | ||
"new_name" : "volume1", | ||
"comment" : "This is an updated comment" | ||
} | ||
|
||
### | ||
# @name delete volume | ||
DELETE {{ucURL}}/api/2.1/unity-catalog/volumes/test.test4schema1.test4volume1 | ||
Content-Type: application/json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.