jkolash commented on issue #2514:
URL: 
https://github.com/apache/iceberg-python/issues/2514#issuecomment-3346520780

   So in my snippet above I do use load_catalog and that is fine. However I 
still have the problem of where do I store credential references.
   
   My options are
   1. Store them in code (Not good)
   2. Store them in a separate config file (Ok. This requires setting up a 
separate config format and resolution from pyicebergs, or re-implement it)
   3. Store them in the .pyiceberg.yaml config (Best. The config 
format/resolution logic is the same as pyiceberg)
   
   In order to go with option 3 I need a way to read the catalog configs 
without loading the catalog so a new function inside 
[catalog/__init__.py](https://github.com/apache/iceberg-python/blob/b63278bcae13f959a3c7d1dbb7b6caa3c7edf7c8/pyiceberg/catalog/__init__.py)
 called read_catalog_configs would work.
   
   ```python
   def read_catalog_configs(catalog_name):
       return _ENV_CONFIG.get_catalog_config(catalog_name)
   ```
   
   I can today just directly access _ENV_CONFIG and go with option 3 but I'd 
prefer that there be a more proper function to call vs getting a direct 
reference to a global and calling a funciton on that which may break in the 
future as it is probably not a supported api call.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to