Skip to content

[#6815] feat(server): Support update comment for model version#6987

Merged
jerryshao merged 1 commit intobranch-0.9from
cherry-pick-branch-0.9-998d2416fdb9b94b06e80c20c895669fb6d6f5f2
Apr 17, 2025
Merged

[#6815] feat(server): Support update comment for model version#6987
jerryshao merged 1 commit intobranch-0.9from
cherry-pick-branch-0.9-998d2416fdb9b94b06e80c20c895669fb6d6f5f2

Conversation

@github-actions
Copy link

What changes were proposed in this pull request?

Support update comment for model version

  • PR1: Add ModelVersionChange API interface, Implement the update comment logic in model catalog and JDBC backend logic, update related event.
  • PR2: Add REST endpoint to support model version change, add Java client and Python client for model version comment update.

Why are the changes needed?

Fix: #6815

Does this PR introduce any user-facing change?

Add support for updating comments on model versions. Users can now update a model version's comment via the REST API.

How was this patch tested?

local test.
original model version comment.
image

bin/gcli.sh model update -m demo_metalake --name model_catalog.schema.model2 --version 0 --comment 'new comment'
image

bin/gcli.sh model update -m demo_metalake --name model_catalog.schema.model2 --alias test --comment 'new comment by alias'

image

### What changes were proposed in this pull request?

Support update comment for model version
- [x] PR1: Add ModelVersionChange API interface, Implement the update
comment logic in model catalog and JDBC backend logic, update related
event.
- [X] PR2: Add REST endpoint to support model version change, add Java
client and Python client for model version comment update.

### Why are the changes needed?

Fix: #6815

### Does this PR introduce _any_ user-facing change?

Add support for updating comments on model versions. Users can now
update a model version's comment via the REST API.

### How was this patch tested?

local test.
original model version comment.
<img width="1055" alt="image"
src="https://github.com/user-attachments/assets/c74c4dd1-f785-4c74-ae17-d666b06950f0"
/>

`bin/gcli.sh model update -m demo_metalake --name
model_catalog.schema.model2 --version 0 --comment 'new comment'`
<img width="1057" alt="image"
src="https://github.com/user-attachments/assets/a866371e-df0b-4999-adb6-8543eaff73a3"
/>

`bin/gcli.sh model update -m demo_metalake --name
model_catalog.schema.model2 --alias test --comment 'new comment by
alias'`

<img width="1070" alt="image"
src="https://github.com/user-attachments/assets/2f838272-21a1-45b7-944d-014e45c7a511"
/>
@github-actions github-actions bot requested a review from roryqi April 17, 2025 07:10
@jerryshao jerryshao closed this Apr 17, 2025
@jerryshao jerryshao reopened this Apr 17, 2025
@jerryshao jerryshao merged commit c1c3c06 into branch-0.9 Apr 17, 2025
30 checks passed
@jerryshao jerryshao deleted the cherry-pick-branch-0.9-998d2416fdb9b94b06e80c20c895669fb6d6f5f2 branch April 17, 2025 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants