Skip to content

Removing partitionField and dropping partition columns will corrupt the entire table. #14289

Description

@Zhanxiao-Ma

Apache Iceberg version

1.8.1

Query engine

None

Please describe the bug 🐞

I am using Iceberg through the Java API.
The table schema: a, b, c. Select column a as the partition column and write data. Call the interface Table.updateSpec().removeField() to remove the partition information, then call the interface Table.updateSchema().deleteColumn("a"). When subsequently attempting to read the table, an error occurs. In my expectation, this shouldn't cause an error, right?

Willingness to contribute

  • I can contribute a fix for this bug independently
  • I would be willing to contribute a fix for this bug with guidance from the Iceberg community
  • I cannot contribute a fix for this bug at this time

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions