Skip to content

[0.3] Backport remaining PRs of commit api server support - #1232

Merged
tdas merged 5 commits into
unitycatalog:branch-0.3from
yili-db:3_commit_2
Nov 21, 2025
Merged

tdas merged 5 commits into
unitycatalog:branch-0.3from
yili-db:3_commit_2

Conversation

@yili-db

@yili-db yili-db commented Nov 20, 2025

Copy link
Copy Markdown
Collaborator

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

Backport remaining PRs of commit api server support

Related issue
#1143

## 🥞 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]>
## 🥞 Stacked PR
Use this
[link](https://github.com/unitycatalog/unitycatalog/pull/1169/files) to
review incremental changes.
-
[**stack/commit_backfill_delete_meta**](unitycatalog#1169)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1169/files)]
-
[stack/commit_get](unitycatalog#1170)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1170/files/eee17f0c3f9e6a456523fb0bf502b560a31ddea7..6e1ceb0c6747f1c85bc344b25b6d982dc964a8b3)]
-
[stack/commit_access_test](unitycatalog#1178)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1178/files/6e1ceb0c6747f1c85bc344b25b6d982dc964a8b3..7cb3ace271839563449be4a900f5260633c423b5)]
-
[stack/ccv2_spark](unitycatalog#1186)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1186/files/7cb3ace271839563449be4a900f5260633c423b5..72eff6e86a48ecdcddbd407a5d7f5edabad35a7c)]

---------
**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 implements backfill and metadata update functionality for
Delta commits in Unity Catalog:
- Backfilling and deletion of old commit metadata
- Commit limit enforcement
- Table metadata updates via commits
- Comprehensive test coverage


**Related issue**
unitycatalog#1143

---------

Signed-off-by: Yi Li <[email protected]>
## 🥞 Stacked PR
Use this
[link](https://github.com/unitycatalog/unitycatalog/pull/1170/files) to
review incremental changes.
-
[**stack/commit_get**](unitycatalog#1170)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1170/files)]
-
[stack/commit_access_test](unitycatalog#1178)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1178/files/2170d0bcd2ae26a70bd10d094cf20f968d929874..b9bd7194e2bda546e69e8782cba3da95e1b4c83d)]
-
[stack/ccv2_spark](unitycatalog#1186)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1186/files/b9bd7194e2bda546e69e8782cba3da95e1b4c83d..1deff5e7a5805b9b1da01e8111a48ba1b8c09216)]

---------
**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 the ability to retrieve commits for managed Delta
tables with coordinated commit semantics, completing the read path for
the coordinated commits API.

Key features:
- Version range filtering (inclusive start and end)
- Returns commits in descending order (newest first)
- Returns latestTableVersion even when commit list is empty
- Proper error handling for invalid parameters

**Related issue**
unitycatalog#1143

Signed-off-by: Yi Li <[email protected]>
…ced when committing to UC and getting commits from UC. (unitycatalog#1178)

## 🥞 Stacked PR
Use this
[link](https://github.com/unitycatalog/unitycatalog/pull/1178/files) to
review incremental changes.
-
[**stack/commit_access_test**](unitycatalog#1178)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1178/files)]
-
[stack/ccv2_spark](unitycatalog#1186)
[[Files
changed](https://github.com/unitycatalog/unitycatalog/pull/1186/files/cb4d52ef1a52d05e27734946528cc6c48873fd5d..c0ddf0bc7eb7cfbc63786e9fd7aa810019e4bf25)]

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

Add an access control test to verify that correct permission is enforced
when committing to UC and getting commits from UC.

**Related issue**
unitycatalog#1143

---------

Signed-off-by: Yi Li <[email protected]>
**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 is to fix a bug that UC didn't allow a 2nd staging table to be
created using the same name. However this is actually a valid use case.
When the table creation failed after the staging table is created but
before the table creation, the dangling staging table would prevent
retrying effort to create the table using the same name again. We have
to allow the staging table to be created again using the same name to
get it through. The new staging table will have new ID and location so
it won't be a problem anyway.

**Related issue**
unitycatalog#1143

Signed-off-by: Yi Li <[email protected]>
@tdas
tdas merged commit 9bbfc07 into unitycatalog:branch-0.3 Nov 21, 2025
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.

2 participants