YedianCheng opened a new pull request, #7366: URL: https://github.com/apache/gravitino/pull/7366
### What changes were proposed in this pull request? Add support for MODEL provider in CLI catalog creation command by: - Add MODEL constant definition - Add MODEL to valid providers set - Handle MODEL provider in internal() method - Set catalog type to MODEL for model provider ### Why are the changes needed? Currently, the CLI throws "Unsupported provider: model" error when trying to create a model catalog. This prevents users from using the CLI to manage model catalogs, even though the server supports model catalogs. Fix: CLI does not support create model catalog now ### Does this PR introduce *any* user-facing change? Yes, this PR introduces the following user-facing change: - Users can now use CLI command `gcli.sh catalog create --metalake <metalake> --name <name> --provider model` to create model catalogs - The CLI will no longer throw "Unsupported provider: model" error for model provider ### How was this patch tested? - Built the project successfully with `./gradlew build` - Ran CLI tests with `./gradlew :clients:cli:test` - all tests passed - **Manual testing**: CLI command `catalog create --metalake yedian --name model --provider model` now successfully creates model catalog instead of throwing "Unsupported provider: model" error - Verified the fix by starting local Gravitino server and testing the complete workflow -- 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]
