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