Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions api/Apis/CoordinatedCommitsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# CoordinatedCommitsApi

All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**commit**](CoordinatedCommitsApi.md#commit) | **POST** /delta/preview/commits | Commit changes to a specified table. The server has a limit defined in config on how many unbackfilled commits it can hold. Clients are expected to do active backfill of the commit after committing to UC. So in most cases the number of unbackfilled commits should be close to zero or one. But if clients misbehave and unbackfilled commits accumulate beyond the limit, server will reject further commits until more backfill is done. WARNING: This API is experimental and may change in future versions. |
| [**getCommits**](CoordinatedCommitsApi.md#getCommits) | **GET** /delta/preview/commits | List unbackfilled Delta table commits. WARNING: This API is experimental and may change in future versions. |


<a name="commit"></a>
# **commit**
> Object commit(Commit)

Commit changes to a specified table. The server has a limit defined in config on how many unbackfilled commits it can hold. Clients are expected to do active backfill of the commit after committing to UC. So in most cases the number of unbackfilled commits should be close to zero or one. But if clients misbehave and unbackfilled commits accumulate beyond the limit, server will reject further commits until more backfill is done. WARNING: This API is experimental and may change in future versions.

### Parameters

|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **Commit** | [**Commit**](../Models/Commit.md)| | |

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

<a name="getCommits"></a>
# **getCommits**
> GetCommitsResponse getCommits(table\_id, table\_uri, start\_version, end\_version)

List unbackfilled Delta table commits. WARNING: This API is experimental and may change in future versions.

List all the unbackfilled delta commits that are currently being tracked by the UC coordinator. If no commits are being tracked in the specific version range (from start_version to an optional end_version), it will return an empty list. WARNING: This API is experimental and may change in future versions.

### Parameters

|Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **table\_id** | **String**| The ID of the table to get the commits for. This ID uniquely identifies a table. | [default to null] |
| **table\_uri** | **String**| The URI of the storage location of the table. If the table_id exists but the table_uri is different from the one previously registered (e.g., if the client moved the table), the request will fail. Example: s3://bucket-name/tables/some-table-id | [default to null] |
| **start\_version** | **Long**| The start version from which to retrieve commits (inclusive). This along with the optional end_version specifies the range of commit versions that this request wants. | [default to null] |
| **end\_version** | **Long**| The end version upto which to retrieve commits (inclusive). If not set, the latest version will be used as the end version. This does not affect the latest_table_version in the response. If num of commits that meet this criteria is larger than a limit set by server config, the response will be limited to the first X commits. Call can send request again with a larger start_version according to the response to get the remaining commits. | [optional] [default to null] |

### Return type

[**GetCommitsResponse**](../Models/GetCommitsResponse.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

9 changes: 9 additions & 0 deletions api/Models/ColumnInfos.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# ColumnInfos
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **columns** | [**List**](ColumnInfo.md) | The array of column descriptions. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

13 changes: 13 additions & 0 deletions api/Models/Commit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Commit
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **table\_id** | **String** | The ID of the table to commit to. This ID uniquely identifies a table. | [default to null] |
| **table\_uri** | **String** | The URI of the storage location of the table. If the table_id exists but the table_uri is different from the one previously registered (e.g., if the client moved the table), the request will fail. Example: s3://bucket-name/tables/some-table-id | [default to null] |
| **commit\_info** | [**CommitInfo**](CommitInfo.md) | | [optional] [default to null] |
| **latest\_backfilled\_version** | **Long** | The highest version of the commits that have been backfilled for this table; meaning UC no longer needs to keep track of commits of versions &lt;&#x3D; this version. | [optional] [default to null] |
| **metadata** | [**Metadata**](Metadata.md) | | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

13 changes: 13 additions & 0 deletions api/Models/CommitInfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# CommitInfo
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **version** | **Long** | The version of this commit. | [default to null] |
| **timestamp** | **Long** | The timestamp for when the commit was made. This is the in-commit timestamp as produced by the Delta client writing to the table. | [default to null] |
| **file\_name** | **String** | The filename of the UUID-based commit file. | [default to null] |
| **file\_size** | **Long** | The size of the commit file in bytes. | [default to null] |
| **file\_modification\_timestamp** | **Long** | The modification time of the commit file. This is the mod time of the file as written to the file system. | [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

9 changes: 9 additions & 0 deletions api/Models/CommitMetadataProperties.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CommitMetadataProperties
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **properties** | **Map** | A map of key-value properties attached to the securable. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

10 changes: 10 additions & 0 deletions api/Models/GetCommitsResponse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# GetCommitsResponse
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **commits** | [**List**](CommitInfo.md) | The list of unbackfilled Delta table commits. Can be in arbitrary order. | [optional] [default to null] |
| **latest\_table\_version** | **Long** | Represents the latest version of the table tracked by UC. If no commits have occurred via UC yet, then UC cannot determine the latest version and returns -1. Use this field to manage pagination — if the returned commits don&#39;t cover the range up to latest_table_version or end_version (whichever is smaller), it indicates that more unbackfilled commits may be available. | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

11 changes: 11 additions & 0 deletions api/Models/Metadata.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Metadata
## Properties

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
| **description** | **String** | The table comment. | [optional] [default to null] |
| **schema** | [**ColumnInfos**](ColumnInfos.md) | | [optional] [default to null] |
| **properties** | [**CommitMetadataProperties**](CommitMetadataProperties.md) | | [optional] [default to null] |

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

8 changes: 8 additions & 0 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
*CatalogsApi* | [**getCatalog**](Apis/CatalogsApi.md#getcatalog) | **GET** /catalogs/{name} | Get a catalog |
*CatalogsApi* | [**listCatalogs**](Apis/CatalogsApi.md#listcatalogs) | **GET** /catalogs | List catalogs |
*CatalogsApi* | [**updateCatalog**](Apis/CatalogsApi.md#updatecatalog) | **PATCH** /catalogs/{name} | Update a catalog |
| *CoordinatedCommitsApi* | [**commit**](Apis/CoordinatedCommitsApi.md#commit) | **POST** /delta/preview/commits | Commit changes to a specified table. The server has a limit defined in config on how many unbackfilled commits it can hold. Clients are expected to do active backfill of the commit after committing to UC. So in most cases the number of unbackfilled commits should be close to zero or one. But if clients misbehave and unbackfilled commits accumulate beyond the limit, server will reject further commits until more backfill is done. WARNING: This API is experimental and may change in future versions. |
*CoordinatedCommitsApi* | [**getCommits**](Apis/CoordinatedCommitsApi.md#getcommits) | **GET** /delta/preview/commits | List unbackfilled Delta table commits. WARNING: This API is experimental and may change in future versions. |
| *CredentialsApi* | [**createCredential**](Apis/CredentialsApi.md#createcredential) | **POST** /credentials | Create a credential |
*CredentialsApi* | [**deleteCredential**](Apis/CredentialsApi.md#deletecredential) | **DELETE** /credentials/{name} | Delete a credential |
*CredentialsApi* | [**getCredential**](Apis/CredentialsApi.md#getcredential) | **GET** /credentials/{name} | Get a credential |
Expand Down Expand Up @@ -70,7 +72,11 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
- [AzureUserDelegationSAS](./Models/AzureUserDelegationSAS.md)
- [CatalogInfo](./Models/CatalogInfo.md)
- [ColumnInfo](./Models/ColumnInfo.md)
- [ColumnInfos](./Models/ColumnInfos.md)
- [ColumnTypeName](./Models/ColumnTypeName.md)
- [Commit](./Models/Commit.md)
- [CommitInfo](./Models/CommitInfo.md)
- [CommitMetadataProperties](./Models/CommitMetadataProperties.md)
- [CreateCatalog](./Models/CreateCatalog.md)
- [CreateCredentialRequest](./Models/CreateCredentialRequest.md)
- [CreateExternalLocation](./Models/CreateExternalLocation.md)
Expand Down Expand Up @@ -100,6 +106,7 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
- [GenerateTemporaryPathCredential](./Models/GenerateTemporaryPathCredential.md)
- [GenerateTemporaryTableCredential](./Models/GenerateTemporaryTableCredential.md)
- [GenerateTemporaryVolumeCredential](./Models/GenerateTemporaryVolumeCredential.md)
- [GetCommitsResponse](./Models/GetCommitsResponse.md)
- [GetMetastoreSummaryResponse](./Models/GetMetastoreSummaryResponse.md)
- [ListCatalogsResponse](./Models/ListCatalogsResponse.md)
- [ListCredentialsResponse](./Models/ListCredentialsResponse.md)
Expand All @@ -110,6 +117,7 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
- [ListSchemasResponse](./Models/ListSchemasResponse.md)
- [ListTablesResponse](./Models/ListTablesResponse.md)
- [ListVolumesResponseContent](./Models/ListVolumesResponseContent.md)
- [Metadata](./Models/Metadata.md)
- [ModelVersionInfo](./Models/ModelVersionInfo.md)
- [ModelVersionOperation](./Models/ModelVersionOperation.md)
- [ModelVersionStatus](./Models/ModelVersionStatus.md)
Expand Down
Loading