Skip to content

bug: validate schema and partition field name conflicts during updates #13833

@kevinjqliu

Description

@kevinjqliu

Feature Request / Improvement

Description

Iceberg validates conflicts between schema field names and partition field names. For example, in checkAndAddPartitionName, name conflicts are rejected unless it’s an identity/void transform sourced from the same field.

We need to make this check when updating the schema (UpdateSchema) as well as updating the partition spec (UpdatePartitionSpec).

Found this edge case while we were implementing the same check in pyiceberg, apache/iceberg-python#2305

Query engine

None

Willingness to contribute

  • I can contribute this improvement/feature independently
  • I would be willing to contribute this improvement/feature with guidance from the Iceberg community
  • I cannot contribute this improvement/feature at this time

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementPR that improves existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions