kevinjqliu commented on code in PR #1433:
URL: https://github.com/apache/iceberg-python/pull/1433#discussion_r1904467272
##########
mkdocs/docs/api.md:
##########
@@ -951,8 +951,10 @@ Using `add_column` you can add a column, without having to
worry about the field
with table.update_schema() as update:
update.add_column("retries", IntegerType(), "Number of retries to place
the bid")
# In a struct
- update.add_column("details.confirmed_by", StringType(), "Name of the
exchange")
+ update.add_column("details", StructType())
+ update.add_column(("details", "confirmed_by"), StringType(), "Name of the
exchange")
```
+A complex type must exist before columns can added to it. Fields in complex
types are added in a tuple.
Review Comment:
```suggestion
A complex type must exist before columns can be added to it. Fields in
complex types are added in a tuple.
```
--
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]