Apache Iceberg version
0.7.1 (latest release)
Please describe the bug 🐞
Currently, tying to remove an existing description from a column using update_column with either doc=None or doc="" doesn't do anything.
This issue can be attributed to the way we detect the doc value we want to apply on the NestedField.
|
self._updates[field.field_id] = NestedField( |
|
field_id=field.field_id, |
|
name=field.name, |
|
field_type=field_type or field.field_type, |
|
doc=doc or field.doc, |
|
required=field.required, |
|
) |
doc or field.doc results in field.doc when doc is an empty string.
We need to update the code so that we can support dropping the description.
Apache Iceberg version
0.7.1 (latest release)
Please describe the bug 🐞
Currently, tying to remove an existing description from a column using
update_columnwith eitherdoc=Noneordoc=""doesn't do anything.This issue can be attributed to the way we detect the doc value we want to apply on the NestedField.
iceberg-python/pyiceberg/table/__init__.py
Lines 2504 to 2510 in 8e33e55
doc or field.docresults infield.docwhen doc is an empty string.We need to update the code so that we can support dropping the description.