kevinjqliu opened a new issue, #326:
URL: https://github.com/apache/iceberg-python/issues/326

   ### Feature Request / Improvement
   
   With #299 resolved, let's add an example to show working with Iceberg using 
minimal external dependencies. 
   
   Get started with Iceberg using the local filesystem and a simple catalog.
   `Local Filesystem` + `SqlCatalog`
   
   ## Catalog config
   ```
   from pyiceberg.catalog.sql import SqlCatalog
   
   catalog_path = "/tmp/warehouse/pyiceberg.db"
   warehouse_path = "/tmp/warehouse/"
   catalog = SqlCatalog("default", **{
       "uri": f"sqlite:///{catalog_path}",
       "warehouse": f"file://{warehouse_path}",
   })
   ```
   
   Note that, the `/tmp/warehouse/` folder needs to exist first.
   
   ## Create a new table and write to it
   
https://github.com/apache/iceberg-python/blob/main/mkdocs/docs/api.md#write-support
   
   ## Query the table with `pyiceberg` 
   `~/.pyiceberg.yaml` file:
   ```
   catalog:
     default:
       uri: sqlite:////tmp/warehouse/pyiceberg.db
       warehouse: file:///tmp/warehouse/
   ```
   
   ## Run `pyiceberg` CLI
   `pyiceberg list`
   
   


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