Skip to content

[Bug] Allow users to drop column description in update_column #1079

@sungwy

Description

@sungwy

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions