You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "xiaozcy (via GitHub)" <gi...@apache.org> on 2025/06/06 06:55:59 UTC

[I] [Improvement] Support create model catalog in CLI [gravitino]

xiaozcy opened a new issue, #7351:
URL: https://github.com/apache/gravitino/issues/7351

   ### What would you like to be improved?
   
   CLI does not support create model catalog now.
   ```
   ~ % gcli.sh catalog create --metalake xiaozcy --name model --provider model
   
   Unsupported provider: model
   ```
   
   
   ### How should we improve?
   
   It should be supported.


-- 
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: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "YedianCheng (via GitHub)" <gi...@apache.org>.
YedianCheng commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2957782307

   Hi @Abyss-lord ,
   
   I have successfully implemented the fix for this issue. Here's what I did:
   
   ## Changes Made
   - Added MODEL constant definition to Providers.java
   - Added MODEL to valid providers set
   - Added MODEL case in internal() method to return "model" 
   - Added MODEL case in catalogType() method to return Catalog.Type.MODEL
   
   ## Testing
   - Built and tested locally
   - CLI command `gcli.sh catalog create --metalake yedian --name model --provider model` now works successfully
   - No longer throws "Unsupported provider: model" error
   
   ## Pull Request
   I have created a pull request with the fix: [(https://github.com/apache/gravitino/pull/7366)]
   
   The issue is now resolved and ready for review.
   
   Thanks for assigning this to me!
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2953583003

   @YedianCheng Would you like to do this job? I can assign it to you.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "YedianCheng (via GitHub)" <gi...@apache.org>.
YedianCheng commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2953664728

   > [@YedianCheng](https://github.com/YedianCheng) Would you like to do this job? I can assign it to you.
   
   Yes, please assign it to me! I'm ready to start working on this. Thank you!
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "YedianCheng (via GitHub)" <gi...@apache.org>.
YedianCheng commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2960826758

   @Abyss-lord @xiaozcy 
   
   Thank you for the feedback! I have addressed all the review comments:
   
   **Removed comments** - Cleaned up all English comments from the code
   **Removed extra blank lines** - Fixed formatting issues  
   **Added unit tests** - Added comprehensive tests for MODEL provider:
      - Added MODEL to `validProviders()` test
      - Added MODEL to `internalNotNull()` test  
      - Added MODEL to `catalogTypeNotNull()` test
      - Added specific `modelProviderInternal()` test
      - Added specific `modelProviderCatalogType()` test
   
   **Unit tests passing** - Verified with `./gradlew :clients:cli:test --tests "org.apache.gravitino.cli.TestProviders"`
   **Manual end-to-end testing successful** - CLI command now works correctly:
      - **Before**: `Unsupported provider: model` error
      - **After**: `model catalog created` success message
      
   The MODEL provider support is now complete with both unit test coverage and verified end-to-end functionality. Ready for final review!
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2958053584

   > Hi [@Abyss-lord](https://github.com/Abyss-lord) ,
   > 
   > I have successfully implemented the fix for this issue. Here's what I did:
   > 
   > ## Changes Made
   > 
   > * Added MODEL constant definition to Providers.java
   > * Added MODEL to valid providers set
   > * Added MODEL case in internal() method to return "model"
   > * Added MODEL case in catalogType() method to return Catalog.Type.MODEL
   > 
   > ## Testing
   > 
   > * Built and tested locally
   > * CLI command `gcli.sh catalog create --metalake yedian --name model --provider model` now works successfully
   > * No longer throws "Unsupported provider: model" error
   > 
   > ## Pull Request
   > 
   > I have created a pull request with the fix: [(https://github.com/[/pull/7366](https://github.com/apache/gravitino/pull/7366))]
   > 
   > The issue is now resolved and ready for review.
   > 
   > Thanks for assigning this to me!
   
   @YedianCheng Thank you, is this the first part of this issue?


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "YedianCheng (via GitHub)" <gi...@apache.org>.
YedianCheng commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2948356827

   May I take this issue? I'd like to work on adding model catalog support to the CLI.
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "xiaozcy (via GitHub)" <gi...@apache.org>.
xiaozcy commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2948387877

   @YedianCheng sure, you can give it a try.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "zhoukangcn (via GitHub)" <gi...@apache.org>.
zhoukangcn commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-4015837200

   @yuqi1129 this issue can be closed


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2953670814

   > > [@YedianCheng](https://github.com/YedianCheng) Would you like to do this job? I can assign it to you.
   > 
   > Yes, please assign it to me! I'm ready to start working on this. Thank you!
   
   done.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Support create model catalog in CLI [gravitino]

Posted by "Abyss-lord (via GitHub)" <gi...@apache.org>.
Abyss-lord commented on issue #7351:
URL: https://github.com/apache/gravitino/issues/7351#issuecomment-2958092055

   @YedianCheng I left some comments for you.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org