kevinjqliu commented on issue #1784:
URL: 
https://github.com/apache/iceberg-python/issues/1784#issuecomment-2730368903

   @iting0321 heres the current documentation for the CLI 
https://py.iceberg.apache.org/cli/
   
   In general, the CLI requires a connection to the catalog. This can be done 
by passing the catalog configs via parameters, such as `pyiceberg --uri ... 
list` or by reading from the config file (`~/.pyiceberg.yaml`). 
   By default, the CLI will read the `default` entry in the config file. To 
read other entries, you can use `pyiceberg --catalog foo list` 
   
   > However, what if default is not set in the catalog?
   
   this should error because the CLI cannot connect to any catalog
   
   > if the command is pyiceberg list --catalog hive
   
   it would be nice to not enforce the order of the parameters. I think 
`pyiceberg list --catalog hive` should work the same as `pyiceberg --catalog 
hive list`
   
   > Also, I would like to know whether you can provide an example of 
.pyiceberg.yaml that I can test locally. I am a bit confused about the content 
of .pyiceberg.yaml. For example, can we set the same uri prefix for both hive 
and default?
   
   your example looks correct. You can set the same uri if you like. The `hive` 
and `default` are just names you give to the specific configs. You can call it 
whatever you want as long as you refer to it in the CLI command 


-- 
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: issues-unsubscr...@iceberg.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org
For additional commands, e-mail: issues-h...@iceberg.apache.org

Reply via email to