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: 0 additions & 65 deletions api/Apis/CoordinatedCommitsApi.md

This file was deleted.

62 changes: 62 additions & 0 deletions api/Apis/DeltaCommitsApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# DeltaCommitsApi

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So basically, we are changing the API name from CoordinatedCommitsApi to DeltaCommitsAPi, right ?

I do think it make more sense .

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's right.


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

| Method | HTTP request | Description |
|------------- | ------------- | -------------|
| [**commit**](DeltaCommitsApi.md#commit) | **POST** /delta/preview/commits | Commit changes to a specified Delta 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**](DeltaCommitsApi.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(DeltaCommit)

Commit changes to a specified Delta 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 |
|------------- | ------------- | ------------- | -------------|
| **DeltaCommit** | [**DeltaCommit**](../Models/DeltaCommit.md)| | |

### Return type

**Object**

### Authorization

No authorization required

### HTTP request headers

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

<a name="getCommits"></a>
# **getCommits**
> DeltaGetCommitsResponse getCommits(DeltaGetCommits)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: I saw the last version is : GetCommitsResponse getCommits(table\_id, table\_uri, start\_version, end\_version)

https://github.com/unitycatalog/unitycatalog/pull/1199/files#diff-1462792493109f2d6ce4b9740d884d63e0eea58a714d23e22639dd953d025ac2L38

Changing from the GetCommitsResponse to DeltaGetCommitsResponse, won't need to change to API spec right ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the other part of the PR:

Change getCommits api to use json payload for its parameters. This is the method actually used by Delta Spark


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 |
|------------- | ------------- | ------------- | -------------|
| **DeltaGetCommits** | [**DeltaGetCommits**](../Models/DeltaGetCommits.md)| | [optional] |

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

6 changes: 3 additions & 3 deletions api/Models/Commit.md → api/Models/DeltaCommit.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Commit
# DeltaCommit
## 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] |
| **commit\_info** | [**DeltaCommitInfo**](DeltaCommitInfo.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] |
| **metadata** | [**DeltaMetadata**](DeltaMetadata.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)

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CommitInfo
# DeltaCommitInfo
## Properties

| Name | Type | Description | Notes |
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CommitMetadataProperties
# DeltaCommitMetadataProperties
## Properties

| Name | Type | Description | Notes |
Expand Down
12 changes: 12 additions & 0 deletions api/Models/DeltaGetCommits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# DeltaGetCommits
## Properties

| 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] |

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

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# GetCommitsResponse
# DeltaGetCommitsResponse
## 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] |
| **commits** | [**List**](DeltaCommitInfo.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)
Expand Down
4 changes: 2 additions & 2 deletions api/Models/Metadata.md → api/Models/DeltaMetadata.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Metadata
# DeltaMetadata
## 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] |
| **properties** | [**DeltaCommitMetadataProperties**](DeltaCommitMetadataProperties.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)

15 changes: 8 additions & 7 deletions api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ 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 |
*CredentialsApi* | [**listCredentials**](Apis/CredentialsApi.md#listcredentials) | **GET** /credentials | List credentials |
*CredentialsApi* | [**updateCredential**](Apis/CredentialsApi.md#updatecredential) | **PATCH** /credentials/{name} | Update a credential |
| *DeltaCommitsApi* | [**commit**](Apis/DeltaCommitsApi.md#commit) | **POST** /delta/preview/commits | Commit changes to a specified Delta 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. |
*DeltaCommitsApi* | [**getCommits**](Apis/DeltaCommitsApi.md#getcommits) | **GET** /delta/preview/commits | List unbackfilled Delta table commits. WARNING: This API is experimental and may change in future versions. |
| *ExternalLocationsApi* | [**createExternalLocation**](Apis/ExternalLocationsApi.md#createexternallocation) | **POST** /external-locations | Create an external location |
*ExternalLocationsApi* | [**deleteExternalLocation**](Apis/ExternalLocationsApi.md#deleteexternallocation) | **DELETE** /external-locations/{name} | Delete an external location |
*ExternalLocationsApi* | [**getExternalLocation**](Apis/ExternalLocationsApi.md#getexternallocation) | **GET** /external-locations/{name} | Get an external location |
Expand Down Expand Up @@ -74,9 +74,6 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
- [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 All @@ -91,6 +88,12 @@ All URIs are relative to *http://localhost:8080/api/2.1/unity-catalog*
- [CredentialInfo](./Models/CredentialInfo.md)
- [CredentialPurpose](./Models/CredentialPurpose.md)
- [DataSourceFormat](./Models/DataSourceFormat.md)
- [DeltaCommit](./Models/DeltaCommit.md)
- [DeltaCommitInfo](./Models/DeltaCommitInfo.md)
- [DeltaCommitMetadataProperties](./Models/DeltaCommitMetadataProperties.md)
- [DeltaGetCommits](./Models/DeltaGetCommits.md)
- [DeltaGetCommitsResponse](./Models/DeltaGetCommitsResponse.md)
- [DeltaMetadata](./Models/DeltaMetadata.md)
- [Dependency](./Models/Dependency.md)
- [DependencyList](./Models/DependencyList.md)
- [ExternalLocationInfo](./Models/ExternalLocationInfo.md)
Expand All @@ -106,7 +109,6 @@ 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 @@ -117,7 +119,6 @@ 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