Skip to content

Unable to Roll Back to Previous Version After CREATE OR REPLACE with REST Catalog #11524

Closed as not planned

Description

@ofirNakdai

Apache Iceberg version

1.5.0

Query engine

Trino

Please describe the bug 🐞

Description

When using the CREATE OR REPLACE command in Apache Iceberg with the REST catalog after a table has already been created, it’s not possible to revert to a version prior to the CREATE OR REPLACE command. This issue has been observed when using both Trino and Spark as execution engines.

Steps to Reproduce

  1. Set up a table using the REST catalog.
  2. Create an Iceberg table and add some data, making several commits.
  3. Execute a CREATE OR REPLACE statement on the table.
  4. Attempt to roll back to a version from before the CREATE OR REPLACE command.

Expected Behavior

It should be possible to roll back to any previous version of the table, including versions created before the CREATE OR REPLACE operation.

Actual Behavior

After the CREATE OR REPLACE operation, all previous versions from before this command are inaccessible, blocking rollbacks to earlier states.

Environment

  • Apache Iceberg Version: 1.5.0
  • Execution Engines Tested: Trino-464, Spark 3.5.1
  • Catalog Type: REST catalog
  • Storage: S3-compatible

Additional Context

This bug occurs specifically when using the REST catalog. The issue persists across both Trino and Spark, suggesting it may be specific to how the REST catalog handles versioning with CREATE OR REPLACE.

Willingness to contribute

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

Activity

  1. added
    bug
    on Nov 12, 2024
  2. alonahmias commented on Dec 4, 2024

    @alonahmias

    Hey, i have encountered this issue too.

  3. ebyhr commented on Mar 28, 2025

    @ebyhr
    Member

    @ofirNakdai @alonahmias I can't reproduce the issue with Trino 474 (Iceberg 1.8.1). Could you try the latest version?

  4. mayankvadariya commented on Mar 28, 2025

    @mayankvadariya

    @ofirNakdai are you possibly hitting trinodb/trino#24056 ?

  5. github-actions commented on Sep 25, 2025

    @github-actions

    This issue has been automatically marked as stale because it has been open for 180 days with no activity. It will be closed in next 14 days if no further activity occurs. To permanently prevent this issue from being considered stale, add the label 'not-stale', but commenting on the issue is preferred when possible.

  6. github-actions commented on Oct 9, 2025

    @github-actions

    This issue has been closed because it has not received any activity in the last 14 days since being marked as 'stale'

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

    bugstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions