TheR1sing3un opened a new pull request, #8320:
URL: https://github.com/apache/paimon/pull/8320

   ## Purpose
   
   pypaimon already implements the full tag Catalog API (filesystem + REST), 
but the CLI had no way to manage tags — users had to drop down to the Python 
API. This adds tag management to the CLI.
   
   ## Changes
   
   Add `paimon table tag {create,list,get,delete}`, nested under the `table` 
command (mirroring `table alter`):
   
   ```shell
   paimon table tag create db.t v1 [--snapshot-id N] [--ignore-if-exists]
   paimon table tag list   db.t [--prefix P] [--format table|json]
   paimon table tag get    db.t v1 [--format table|json]
   paimon table tag delete db.t v1
   ```
   
   - All operations go through the Catalog layer, so they get typed exceptions 
(`TagAlreadyExistException` / `TagNotExistException` / 
`TableNotExistException`) and work for both filesystem and REST catalogs.
   - `tag get` surfaces `tag_create_time` / `tag_time_retained` when present.
   - `list` warns on stderr (rather than silently truncating) if the catalog 
returns a partial page.
   - pypaimon CLI docs updated with a new "Table Tag" section.
   
   Flag names mirror the Java Flink/Spark tag procedures (`snapshot_id`, etc.).
   
   ## Tests
   
   End-to-end CLI coverage for create / list / get / delete, including 
`--snapshot-id`, `--ignore-if-exists`, `--prefix`, table/json output, and the 
not-found / duplicate / invalid-identifier error paths.
   
   ## Does this PR introduce a user-facing change?
   
   No.
   
   ---
   Generative AI disclosure: drafted with AI assistance and reviewed by the 
author.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to