Skip to content

Commit 166e7bb

Browse files
Update create table doc to clarify ID re-assignment (#1072)
Copying over a similar sentence from the Java docs: https://iceberg.apache.org/docs/1.5.1/java-api-quickstart/#create-a-schema. Based on my reading of the catalog code, this is true as all the `create_table` implementations end up calling `assign_fresh_schema_ids`, `assign_fresh_partition_spec_ids`, and `assign_fresh_sort_order_ids`. This is useful to understand so newcomers don't have to worry about ID management in any new schemas they are sending into `create_table`.
1 parent ecc858e commit 166e7bb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mkdocs/docs/api.md

+2
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,8 @@ catalog.create_table(
146146
)
147147
```
148148

149+
When the table is created, all IDs in the schema are re-assigned to ensure uniqueness.
150+
149151
To create a table using a pyarrow schema:
150152

151153
```python

0 commit comments

Comments
 (0)