Skip to content

[Proposal] Multi-table, multi-statement transactions (umbrella) #5833

Open

Description

@qlong

Is your feature request related to a problem? Please describe.

Iceberg's REST commitTransaction already commits several tables atomically, a COMMIT without a
BEGIN. What engines can't do today is run a transaction around it:

  • BEGIN … COMMIT across several statements and tables, with read-your-own-writes;
  • one consistent read point across tables that are loaded separately, shared across engines;
  • fan-out, where independent workers each write part of one atomic commit: for example, one
    process ingests customers, another ingests orders, and a single commit publishes both together.

Related discussions here include #3469 (catalog-level branching for atomic multi-table
operations) and #5807 (a multi-table commit doesn't isolate requirements on tables it doesn't
update, so two concurrent commits can both succeed). In Iceberg, see apache/iceberg#10617 (the
multi-table transaction API proposal) and apache/iceberg#6948 (an earlier catalog transactions API,
closed without merging).

Describe the solution you'd like

An optional, opt-in Polaris extension, starting in Polaris and with an Iceberg proposal later if
the community wants one. A proof of concept runs Spark and Trino against a Polaris fork:

  • multi-statement transactions at READ COMMITTED and REPEATABLE READ, with SQL semantics modeled on PostgreSQL and adapted to a lakehouse;
  • a read point that is a cutoff on a per-catalog commit order, so a reader sees all of a
    transaction or none of it;
  • fan-out writes from independent workers that commit atomically.

The write path is moving to Iceberg table branches, published with the standard multi-table
commit, so writes become standard REST updates. The only change to the Iceberg REST surface is one
optional loadTable parameter (the read point); everything else is Polaris-only endpoints.

There is no change to the Iceberg table format, data files or metadata files: staged writes are
ordinary table branches, and the commit order is kept in Polaris's own persistence. Recording the
commit order in table metadata could simplify this later, but it isn't required.

Design discussion and decisions happen on the dev list: [DISCUSS] Multi-table, multi-statement transactions in Polaris.
Design doc: https://docs.google.com/document/d/1ew2dOI_BHQFP1C8Q46Y_m_AvNNH4rzzLKaSsB089GTU/edit?usp=sharing

Work to agree on and track here:

  • Updated design doc for the branch-based write path, shared for comments
  • API: the transaction endpoints and the read point (agreed on the dev list)
  • Persistence SPI: the minimal operations a backend must provide, with JDBC as the first
    implementation, and how NoSQL backends would provide them
  • A per-catalog setting for the commit-order bookkeeping, so catalogs that don't use
    transactions don't pay for it
  • Authorization: map the new operations to the Polaris privilege model, so they work with the
    pluggable authorizers
  • Rebase onto main and follow Replace transaction metastore wrapper with explicit buffering #5088 (explicit buffering)
  • Share on the Iceberg dev list: the read point, the loadTable parameter, snapshot lifecycle
  • Contribution: Cloudera has a Corporate CLA with the ASF; confirm with the PMC whether an SGA
    is needed for the PoC code
  • Split into small, focused PRs (linked here as they open)

Describe alternatives you've considered

  • The standard REST multi-table commit alone: atomic, but no transaction across statements and
    no shared read point.
  • Catalog-level branches (Catalog-level branching for atomic multi-table operations #3469): complementary rather than an alternative. Branches suit
    review-before-publish; transactions suit concurrency on live data. They may be able to share
    building blocks.
  • Transaction state held in the engine: works within one engine, but a read point or a
    transaction can't then be shared across engines, which is what the REST catalog makes possible.

Additional context

Activity

  1. added
    enhancement
    on Oct 21, 2026
  2. github-actions commented on Nov 26, 2026

    @github-actions

    This issue is stale because it has been open 30 days with no activity. Remove stale label or comment if you think it's still relevant.

  3. qlong commented on Nov 26, 2026

    @qlong
    Author

    Ping to keep it alive

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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions