Repository navigation
Update DeltaCommits API #1199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update DeltaCommits API #1199
Changes from all commits
e598293
afaffaa
0f84c82
b4da4f1
a78dfb4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # DeltaCommitsApi | ||
|
|
||
| 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) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: I saw the last version is : Changing from the
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the other part of the PR:
|
||
|
|
||
| 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 | ||
|
|
||
| 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 <= 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 | | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| # CommitMetadataProperties | ||
| # DeltaCommitMetadataProperties | ||
| ## Properties | ||
|
|
||
| | Name | Type | Description | Notes | | ||
|
|
||
| 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,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) | ||
|
|
There was a problem hiding this comment.
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
CoordinatedCommitsApitoDeltaCommitsAPi, right ?I do think it make more sense .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that's right.