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

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   when i use gcli command, if i set `--name` option value to 
`lsp_test.mysql_test.test_db`, it uses part[0] as both the metalakeName and the 
catalogName.
   
   Reason
   1. when i not set `--metalake`, and no `GRAVITINO_METALAKE`, no configFile. 
it will extract part[0] of `--name` option as metalakeName in 
`org.apache.gravitino.cli.FullName#getMetalakeName`.
   2. it always extract part[0] of `--name` option as catalogName in 
`org.apache.gravitino.cli.FullName#getCatalogName`。
   
   ### Error message and/or stacktrace
   
   
![image](https://github.com/user-attachments/assets/4f3e46d0-356f-49b7-8088-a853e61c3d9c)
   
   
   ### How to reproduce
   
   specific FullName by --name option only. No --metalake, no metalakeEnv, and 
no config file.
   ``` gcli -u http://xxx:8090 table list --name lsp_test.mysql_test.test_db ```
   
   ### Additional context
   
   _No response_


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