You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "Stephen0421 (via GitHub)" <gi...@apache.org> on 2026/10/10 02:32:27 UTC
[PR] [python] Support tag rename and replace in the CLI [paimon]
Stephen0421 opened a new pull request, #10477:
URL: https://github.com/apache/paimon/pull/10477
### Purpose
Add `paimon tag rename` and `paimon tag replace` for filesystem catalogs, and let `paimon tag create` set a retention.
Filesystem catalogs delegate to the existing `FileStoreTable.rename_tag` and `replace_tag`. A missing tag or a conflicting new name becomes `TagNotExistException` or `TagAlreadyExistException`. A missing snapshot stays a `ValueError`.
REST catalogs reject both commands. The REST API only has create, get, list, and delete. Rewriting the tag file from the client would leave the server registry pointing at a name whose file is gone, and would skip the permission checks used by the other tag commands.
`tag create --time-retained` passes the retention through to `catalog.create_tag`. On replace, omitting `--time-retained` rewrites the tag as a plain snapshot reference and drops a retention that was already set. That matches the existing tag-file format.
```shell
paimon tag rename mydb.users v1 v2
paimon tag replace mydb.users v1 --snapshot-id 3 --time-retained 12h
paimon tag create mydb.users v1 --time-retained 12h
```
### Test plan
- [x] `cli_tag_test`: rename, name conflict, replace to a snapshot and to latest, create and replace with `12h`, missing tag, missing snapshot, replace without `--time-retained` drops TTL
- [x] `rest_tag_test`: rename and replace raise `NotImplementedError` and leave the server tag registry unchanged
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [python] Support tag rename and replace in the CLI [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi commented on PR #10477:
URL: https://github.com/apache/paimon/pull/10477#issuecomment-6125346202
+1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [python] Support tag rename and replace in the CLI [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #10477:
URL: https://github.com/apache/paimon/pull/10477
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [python] Support tag rename and replace in the CLI [paimon]
Posted by "Stephen0421 (via GitHub)" <gi...@apache.org>.
Stephen0421 closed pull request #10477: [python] Support tag rename and replace in the CLI
URL: https://github.com/apache/paimon/pull/10477
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org