bitsondatadev commented on issue #326:
URL: https://github.com/apache/iceberg-python/issues/326#issuecomment-1921624193

   > Note that, the /tmp/warehouse/ folder needs to exist first.
   
   @kevinjqliu what do you think of managing the file creation/deletion by 
default
   
   ```python
   import tempfile
   from pyiceberg.catalog.sql import SqlCatalog
   
   with tempfile.TemporaryDirectory(delete=True) as warehouse_path:
       catalog_path = f"{warehouse_path}/pyiceberg.db"
   
       catalog = SqlCatalog("default", **{
         "uri": f"sqlite:///{catalog_path}",
         "warehouse": f"file://{warehouse_path}",
       })
   
       print('created catalog: ', catalog)
   ```


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