Repository navigation
Update DeltaCommits API - #1199
Conversation
c9c94ad to
d0d4f60
Compare
## 🥞 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]>
Signed-off-by: Yi Li <[email protected]>
Signed-off-by: Yi Li <[email protected]>
Signed-off-by: Yi Li <[email protected]>
Signed-off-by: Yi Li <[email protected]>
d0d4f60 to
b4da4f1
Compare
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/GetCommits' |
There was a problem hiding this comment.
can you make all the commit related schemas have Delta? for example GetDeltaCommits
8672e5a to
70e06f4
Compare
| content: | ||
| application/json: | ||
| schema: | ||
| $ref: '#/components/schemas/GetDeltaCommits' |
Signed-off-by: Yi Li <[email protected]>
70e06f4 to
a78dfb4
Compare
| @@ -0,0 +1,62 @@ | |||
| # DeltaCommitsApi | |||
There was a problem hiding this comment.
So basically, we are changing the API name from CoordinatedCommitsApi to DeltaCommitsAPi, right ?
I do think it make more sense .
|
|
||
| <a name="getCommits"></a> | ||
| # **getCommits** | ||
| > DeltaGetCommitsResponse getCommits(DeltaGetCommits) |
There was a problem hiding this comment.
Question: I saw the last version is : GetCommitsResponse getCommits(table\_id, table\_uri, start\_version, end\_version)
Changing from the GetCommitsResponse to DeltaGetCommitsResponse, won't need to change to API spec right ?
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
LGTM. thank you for renaming.
) 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]>
## 🥞 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 to review incremental changes.
PR Checklist
docsis updatedDescription of changes
Update DeltaCommits API
Related issue
#1143