Skip to content

Normal equality check is causing to commit the same metadata #14409

@Rajeev-01

Description

@Rajeev-01

Apache Iceberg version

1.9.2

Query engine

None

Please describe the bug 🐞

Summary

  • Because of the normal equality check which only checks the references equality is actually causing to commit the same metadata multiple times.
  • This is unnecessary commit which is unintended.
  • This will be a problem if someone is overriding to their own tableOperations and trying to commit with base.current() and new metadata which has been created by reading from base metadataLocation (which happened in my case 😅 )

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

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