Abyss-lord opened a new pull request, #6066:
URL: https://github.com/apache/gravitino/pull/6066

   ### What changes were proposed in this pull request?
   
   Add register and link commands to CLI for model
   - register a model:`model create`
   - link a model:`model update <—uri uri> [--alias aliaA aliaB]` 
   
   meantime, add two options
   - `—uri` :The URI of the model version artifact.
   - `—alias` :The aliases of the model version.
   
   ### Why are the changes needed?
   
   Fix: #5960 
   
   ### Does this PR introduce _any_ user-facing change?
   
   NO
   
   ### How was this patch tested?
   
   #### register test
   
   ```bash
   # register a model
   gcli model create -m demo_metalake --name Hive_catalog.default.model
   # register a model with comment
   gcli model create -m demo_metalake --name Hive_catalog.default.model 
--comment comment
   # register a model with properties
   gcli model create -m demo_metalake --name Hive_catalog.default.model 
--properties key1=val1 key2=val2
   # register a model with properties and comment
   gcli model create -m demo_metalake --name Hive_catalog.default.model 
--properties key1=val1 klinkey2=val2 --comment comment
   ```
   
   #### link test
   
   ```bash
   # link a model 
   gcli model update -m demo_metalake --name Hive_catalog.default.model --uri 
file:///tmp/file
   # link a model with alias
   gcli model update -m demo_metalake --name Hive_catalog.default.model --uri 
file:///tmp/file  --alias aliasA aliasB
   # link a model with all component
   gcli model update -m demo_metalake --name Hive_catalog.default.model --uri 
file:///tmp/file  --alias aliasA aliasB --comment comment --properties 
key1=val1 key2=val2
   # link a model without uri
   gcli model update -m demo_metalake --name Hive_catalog.default.model
   ```
   


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