This is an automated email from the ASF dual-hosted git repository. fokko pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/iceberg-python.git
The following commit(s) were added to refs/heads/main by this push: new 7ec1c04 Catalog: Documentation to create tables `SQLCatalog` (#106) 7ec1c04 is described below commit 7ec1c049091c4ac4c2babab3f239d8ed8cebd2da Author: Eddy Oyieko <67474838+mobley-tr...@users.noreply.github.com> AuthorDate: Thu Oct 26 22:34:21 2023 +0300 Catalog: Documentation to create tables `SQLCatalog` (#106) * Updated api.md * Updated api.md * Fix the linter --------- Co-authored-by: Fokko Driesprong <fo...@apache.org> --- mkdocs/docs/api.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mkdocs/docs/api.md b/mkdocs/docs/api.md index c19efd6..d716a13 100644 --- a/mkdocs/docs/api.md +++ b/mkdocs/docs/api.md @@ -54,6 +54,12 @@ catalog = load_catalog( ) ``` +If the catalog has not been initialized before, you need to run: + +```python +catalog.create_tables() +``` + Let's create a namespace: ```python @@ -124,6 +130,7 @@ sort_order = SortOrder(SortField(source_id=2, transform=IdentityTransform())) catalog.create_table( identifier="docs_example.bids", schema=schema, + location="s3://pyiceberg", partition_spec=partition_spec, sort_order=sort_order, )