Skip to content

Update DeltaCommits API - #1199

Merged
tdas merged 5 commits into
unitycatalog:mainfrom
yili-db:stack/commit_api_2
Nov 13, 2025
Merged

tdas merged 5 commits into
unitycatalog:mainfrom
yili-db:stack/commit_api_2

Conversation

@yili-db

@yili-db yili-db commented Nov 12, 2025 •

Copy link
Copy Markdown
Collaborator

🥞 Stacked PR

Use this link to review incremental changes.


PR Checklist

  • A description of the changes is added to the description of this PR.
  • If there is a related issue, make sure it is linked to this PR.
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added or modified a feature, documentation in docs is updated

Description of changes

Update DeltaCommits API

  • Change getCommits api to use json payload for its parameters. This is the method actually used by Delta Spark
  • Rename CoordinatedCommits to DeltaCommits in API

Related issue
#1143

@yili-db yili-db changed the title Change getCommits api to use json payload for its parameters. Update DeltaCommits API Nov 12, 2025
@yili-db
yili-db marked this pull request as ready for review November 12, 2025 18:40
tdas pushed a commit that referenced this pull request Nov 12, 2025
## 🥞 Stacked PR
Use this
[link](https://github.com/unitycatalog/unitycatalog/pull/1166/files) to
review incremental changes.
-
[**stack/commit_basic**](#1166)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1166/files)]
-
[stack/commit_api_2](#1199)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1199/files/8c6992aaad6b981ef38a4fb468ef700f083ad49a..d0d4f606101bc705a6a79514a2b4ba31b2b19b19)]
-
[stack/commit_backfill_delete_meta](#1169)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1169/files/d0d4f606101bc705a6a79514a2b4ba31b2b19b19..93dc85893930d1594b3a974cc48228c767f826ab)]
-
[stack/commit_get](#1170)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1170/files/93dc85893930d1594b3a974cc48228c767f826ab..0e7306a1c14f5476eeef78953b948fd2f7ba0453)]
-
[stack/commit_access_test](#1178)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1178/files/0e7306a1c14f5476eeef78953b948fd2f7ba0453..6042111d1b885fc5a9cf687b670c98b95ade14d7)]
-
[stack/ccv2_spark](#1186)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1186/files/6042111d1b885fc5a9cf687b670c98b95ade14d7..cc09752cb91d6c9e6bf474ebc05c82f7a0da95cc)]

---------
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

This commit adds API support for committing Delta table versions to
Unity Catalog
with coordinated commit semantics. When multiple clients attempt to
commit the
same version simultaneously, UC guarantees that only one will succeed.

Key features:
- POST endpoint at /delta/preview/commits for committing new table
versions
- Strict sequential version validation (version N+1 must follow version
N)
- Onboarding flow for tables with no existing commits
- Comprehensive validation of commit metadata and table properties
- Only managed delta tables are supported

Known limitations (documented in code):
- Table metadata updates not yet implemented
- Backfill of commits not yet supported
- Cleanup of commits when deleting tables not yet implemented
- RPC support for reading commit lists not yet implemented

**Related issue**
#1143

---------

Signed-off-by: Yi Li <[email protected]>
Comment thread api/all.yaml Outdated
content:
application/json:
schema:
$ref: '#/components/schemas/GetCommits'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you make all the commit related schemas have Delta? for example GetDeltaCommits

Comment thread api/all.yaml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DeltaCommit

Comment thread api/all.yaml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DeltaGetCommitsResponse

Comment thread api/all.yaml Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DeltaCommitResponse

@yili-db yili-db closed this Nov 12, 2025
@yili-db yili-db reopened this Nov 12, 2025
@yili-db yili-db closed this Nov 12, 2025
@yili-db yili-db reopened this Nov 12, 2025
Comment thread api/all.yaml Outdated
content:
application/json:
schema:
$ref: '#/components/schemas/GetDeltaCommits'

@tdas tdas Nov 12, 2025 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I had suggested DeltaGetCommits :) then all the schemas, models, etc. related to Delta will be close together. right now this is an outlier :/

Image

@@ -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.

@yili-db
yili-db requested review from openinx and tdas November 12, 2025 23:25

<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

@tdas tdas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. thank you for renaming.

@tdas
tdas merged commit b332793 into unitycatalog:main Nov 13, 2025
yili-db added a commit to yili-db/unitycatalog that referenced this pull request Nov 19, 2025
)

Use this
[link](https://github.com/unitycatalog/unitycatalog/pull/1166/files) to
review incremental changes.
-
[**stack/commit_basic**](unitycatalog#1166)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1166/files)]
-
[stack/commit_api_2](unitycatalog#1199)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1199/files/8c6992aaad6b981ef38a4fb468ef700f083ad49a..d0d4f606101bc705a6a79514a2b4ba31b2b19b19)]
-
[stack/commit_backfill_delete_meta](unitycatalog#1169)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1169/files/d0d4f606101bc705a6a79514a2b4ba31b2b19b19..93dc85893930d1594b3a974cc48228c767f826ab)]
-
[stack/commit_get](unitycatalog#1170)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1170/files/93dc85893930d1594b3a974cc48228c767f826ab..0e7306a1c14f5476eeef78953b948fd2f7ba0453)]
-
[stack/commit_access_test](unitycatalog#1178)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1178/files/0e7306a1c14f5476eeef78953b948fd2f7ba0453..6042111d1b885fc5a9cf687b670c98b95ade14d7)]
-
[stack/ccv2_spark](unitycatalog#1186)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1186/files/6042111d1b885fc5a9cf687b670c98b95ade14d7..cc09752cb91d6c9e6bf474ebc05c82f7a0da95cc)]

---------
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

This commit adds API support for committing Delta table versions to
Unity Catalog
with coordinated commit semantics. When multiple clients attempt to
commit the
same version simultaneously, UC guarantees that only one will succeed.

Key features:
- POST endpoint at /delta/preview/commits for committing new table
versions
- Strict sequential version validation (version N+1 must follow version
N)
- Onboarding flow for tables with no existing commits
- Comprehensive validation of commit metadata and table properties
- Only managed delta tables are supported

Known limitations (documented in code):
- Table metadata updates not yet implemented
- Backfill of commits not yet supported
- Cleanup of commits when deleting tables not yet implemented
- RPC support for reading commit lists not yet implemented

**Related issue**
unitycatalog#1143

---------

Signed-off-by: Yi Li <[email protected]>
yili-db added a commit to yili-db/unitycatalog that referenced this pull request Nov 20, 2025
## 🥞 Stacked PR
Use this
[link](https://github.com/unitycatalog/unitycatalog/pull/1199/files) to
review incremental changes.
-
[**stack/commit_api_2**](unitycatalog#1199)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1199/files)]
-
[stack/commit_backfill_delete_meta](unitycatalog#1169)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1169/files/a78dfb470b5128f01ee6c44ccadea2473005a8a2..5e4aff2b0ec2c0518c3ff718d1dfda965d6ff1f5)]
-
[stack/commit_get](unitycatalog#1170)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1170/files/5e4aff2b0ec2c0518c3ff718d1dfda965d6ff1f5..60a3cc2d4e2ef30ee1853a23f2f46f5d00fbc261)]
-
[stack/commit_access_test](unitycatalog#1178)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1178/files/60a3cc2d4e2ef30ee1853a23f2f46f5d00fbc261..dae5d6f57ba8bb0e16037bab00de9393da1553c0)]
-
[stack/ccv2_spark](unitycatalog#1186)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1186/files/dae5d6f57ba8bb0e16037bab00de9393da1553c0..be0473cf83f0e100142403a0134409658dc9760a)]

---------
**PR Checklist**

- [x] A description of the changes is added to the description of this
PR.
- [x] If there is a related issue, make sure it is linked to this PR.
- [ ] If you've fixed a bug or added code that should be tested, add
tests!
- [ ] If you've added or modified a feature, documentation in `docs` is
updated

**Description of changes**

Update DeltaCommits API
- Change getCommits api to use json payload for its parameters. This is
the method actually used by Delta Spark
- Rename CoordinatedCommits to DeltaCommits in API

**Related issue**
unitycatalog#1143

---------

Signed-off-by: Yi Li <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants