You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Catalog-level branching for atomic multi-table operations #3469
Is your feature request related to a problem? Please describe.
Polaris supports per-table branching via Iceberg's branch refs, but operating on branches across many tables is manual and non-atomic. We have 100s of tables. The pain points:
No cross-table branch operations: Creating/merging a branch for N tables requires N individual API calls
No atomic multi-table promotion: Merging tables one-by-one means clients can observe inconsistent states across tables mid-promotion.
Slow branch listing at scale: Discovering which tables have a given branch requires loading each table's metadata individually
Describe the solution you'd like
Catalog-level branching that enables:
Creating/merging a branch across a namespace or set of tables in a single operation
Atomic promotion so all tables flip together
Efficient branch listing without loading each table's metadata
Conceptually:
polaris branch create backfill-2024 --from main --namespace my_ns
# ... run operations against branch ...
polaris branch merge backfill-2024 --into main # All tables promoted atomically
Describe alternatives you've considered
Nessie: Provides catalog-level versioning with Git-like semantics, atomic multi-table commits, and efficient branch operations—but requires adopting a separate catalog Scripted per-table branching: What we do today—operationally complex, non-atomic, doesn't scale well Blue-green table swaps: Duplicate tables, swap via rename—error-prone at 200 tables
Additional context
Nessie has proven this pattern works well. Given discussions around Polaris + Nessie convergence, this seems like a natural feature to bring into Polaris. Happy to contribute to design/implementation.
Reacted by Mourtallah Faye, Alexandre Dutra, Dmitri Bourlatchkov, Mateus Luiz, Rajivkumar, Lucas Brynte, Jan Høydahl, YGoetschel, Animesh Sahu and hyprdia
@97harsh : this is a very interesting topic! I suppose it would be great to talk about this in the next community sync (Jan 22). Would you be able to attend it?
@97harsh : this is a very interesting topic! I suppose it would be great to talk about this in the next community sync (Jan 22). Would you be able to attend it?
@andyslucky : Please consider joining one of the Community Sync calls. I believe this issue deserves an in-person discussion to review use cases and interest from the user community 😉
@janhoy : the NoSQL persistence in Polaris is based on Nessie's concepts. Fundamentally it is capable of pretty much all that Nessie is capable of.
I agree that at the user level, many of those capabilities are not exposed ATM.
The evolution of the project is generally driven by user interest and demand (I think 😅 ), so I'd encourage you to send an email to dev or join one of the Community Syncs and talk about your use cases and how Polaris can support them.
I did not know that much of the foundation for the git-like feature is already implemented (contributed by nessie?) to Polaris. Perhaps you can point us to the documentation for what is already done, and document (briefly) what the next logical step would be to approach exposure of some of this to end users? For community engagement and discoverability it is better to over-document and be generous with cross-linking issues, documentation etc, than to short-circuit public discussions and defer to in-person meetings for the few.
I must admit that I have so far not tested Polaris, only Dremio + Nessie and Hive catalog. I want to look into Polaris and could perhaps contribute down the road.
@97harsh perhaps you have more to share from your end. Have you been able to engage with the community and get a sense of an early design and what concrete tasks are still missing to bring this to life?
@dimas-b I think you were also in it - and it was floated that you and Harsh may collaborate on writing up a feature request document?
Prashant Singh also ended up referring to an existing Polaris endpoint for multi-table commits, but it didn't get completely clear to me to what extent that existing feature would fulfill the needs. Anyone who has any idea?
@janhoy : point taken about docs 😅 we have #3398 lest we forget, but as usual different priorities intervene 😅
I'm open to collaboration, of course. It's good to see interest in this feature 👍
Contributions or even discussions on dev or community syncs are more than welcome. I hope that might invigorate the community regarding more advanced applications.
From my POV a dev list discussion is probably the best path forward ATM. GH comments are good, but not as visible to the larger community as dev emails.
Obviously there's interest in this feature 😉 I encourage starting a dev thread on this. ML discussions generally have more visibility.
I think the key aspect here is the presence of use cases that people want to implement based on Polaris. A large portion of Polaris developers may simply not be aware of them. Describing them from the user perspective will probably produce more engagement on the dev ML. Obviously getting new contributors that are willing to collaborate on implementing the missing pieces is a big factor too since Polaris is an ASF project 🙂
This is definitely something I am interested in. From the previous announcement with Nessie and Polaris I thought this was a no brainer feature that was coming.
@JasonRobertsonSsi : I am glad to see interest in this feature. I believe the best path forward is for Polaris users (like you 🙂 ) to open a discussion thread for this on the devML. GH issues are nice for tracking backlog items, but discussing real life use cases and related design changes are best done on the mailing list, I think.
I'd like to pick this up and help move it forward, as @dimas-b suggested.
I've been working on atomic commit semantics for Iceberg writers elsewhere (native Iceberg support for Apache Hop, and checkpoint recovery fixes in Flink), and multi-table promotion is the piece that's still missing on the catalog side.
My rough idea is to build on what Polaris already has rather than adding a separate versioning layer:
per-table branches stay plain Iceberg branch refs, so engines write to them the way they do today,
a catalog branch is a new Polaris entity that records which tables belong to it and the snapshot each one branched from,
promotion reuses the same transaction workspace that commitTransaction uses, so every table's main ref moves in one atomic metastore update or none of them do.
I'll write this up properly and start a [DISCUSS] thread on dev@ this week, then bring it to the next community sync. @97harsh@lucasbrynte@JasonRobertsonSsi@andyslucky it would really help to hear your concrete use cases there (number of tables, how long a branch lives, whether you need anything beyond fast-forward promotion), since that should drive the scope of a first version.
+1 — this matches a problem we’ve been living with on the SQL side.
At MatrixOrigin we’ve been building branch / snapshot / diff / merge for tables (Git4Data on MatrixOne) mainly for two workloads: multi-table backfills, and agent-authored data changes that must be reviewed before they hit main. Same shape as this issue: create a branch over a set of tables, write off to the side, promote atomically — or don’t.
What we keep learning is that create + atomic promote is necessary but not sufficient. The gate that actually unblocks production use is a multi-table diff (row-level where possible) that a human or policy can approve before promote. Iceberg/Polaris sits at a different layer, but the operator expectation is the same: don’t flip main until someone has seen what changes.
We wrote that loop up here if useful as prior art / adjacent design notes:
FF-only promote + explicit conflict report for v1: yes.
Short-lived branches (minutes–hours) with small table sets for agent workflows; longer-lived (days) for backfills across tens–hundreds of tables.
Option B as a documented recipe now, Option C (true catalog heads, with GC settled) as the destination — agrees with Ankur/Dmitri’s direction.
Please consider surfacing per-table snapshot (or ref) before/after on promote responses so clients can build a review step without scraping metadata N times.
Thanks @dengn, this is really useful, and good to hear the same pattern from the SQL side. The Git4Data write-up on multi-table publish is a nice reference.
On the review step before promote, agreed. Here's how I see it fitting:
With the recipe from docs: promote changes across tables with one multi-table commit #5740 (option B), the client already has both sides: it asserts each table's base snapshot on main and moves main to the branch head. So it can show the change before it promotes, for example with an incremental or changelog scan between the two snapshots of each table. I'll add a short "review before you promote" step to that docs page, so it doesn't read as create-and-flip only.
For catalog branches (option C), the promote endpoint in the design doc is a Polaris extension, so it can return what you describe: for each table, the snapshot (or metadata location) before and after, plus tables created or dropped on the branch. A separate diff endpoint (GET .../branches/{name}/diff) is already in the plan, so a reviewer or a policy check can look at the change first and promote only that state. Promote already takes the state the caller expects, so what was reviewed is exactly what gets promoted. I'll add the response fields to the design doc.
Your two branch lifetimes, minutes to hours for agent changes and days for backfills, are also a good input for the cleanup question. Short-lived branches are where blocking snapshot expiry in v1 costs least.
Update: both done. #5740 now has a "Review the change" step before promoting (1ab13dc), and the design doc's promote and diff endpoints now return each table's before and after state, with promote requiring the reviewed branch state.
Activity
dimas-b commentedon Jan 19, 2026
@97harsh : this is a very interesting topic! I suppose it would be great to talk about this in the next community sync (Jan 22). Would you be able to attend it?
97harsh commentedon Jan 20, 2026
Yes would be able to make it, thank you!
github-actions commentedon Feb 20, 2026
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.
andyslucky commentedon Apr 13, 2026
i am also interested in this. Dont go stale.
dimas-b commentedon Apr 13, 2026
@andyslucky : Please consider joining one of the Community Sync calls. I believe this issue deserves an in-person discussion to review use cases and interest from the user community 😉
janhoy commentedon Jun 3, 2026
What happened to promise from years ago about contrbuting Nessie features to Polaris? https://www.hpcwire.com/bigdatawire/2024/07/30/polaris-catalog-to-be-merged-with-nessie-now-available-on-github/
I'm surprised not to find a single follow-up action, project plan, Github issue, POC or detailed discussions on this? You say:
Perhaps what this issue deserves is an in-the-open discussion on what the next step is to make this happen?
dimas-b commentedon Jun 3, 2026
@janhoy : the NoSQL persistence in Polaris is based on Nessie's concepts. Fundamentally it is capable of pretty much all that Nessie is capable of.
I agree that at the user level, many of those capabilities are not exposed ATM.
The evolution of the project is generally driven by user interest and demand (I think 😅 ), so I'd encourage you to send an email to
devor join one of the Community Syncs and talk about your use cases and how Polaris can support them.janhoy commentedon Jun 3, 2026
I did not know that much of the foundation for the git-like feature is already implemented (contributed by nessie?) to Polaris. Perhaps you can point us to the documentation for what is already done, and document (briefly) what the next logical step would be to approach exposure of some of this to end users? For community engagement and discoverability it is better to over-document and be generous with cross-linking issues, documentation etc, than to short-circuit public discussions and defer to in-person meetings for the few.
I must admit that I have so far not tested Polaris, only Dremio + Nessie and Hive catalog. I want to look into Polaris and could perhaps contribute down the road.
@97harsh perhaps you have more to share from your end. Have you been able to engage with the community and get a sense of an early design and what concrete tasks are still missing to bring this to life?
janhoy commentedon Jun 3, 2026
I did find this documentation which gives some light: https://github.com/apache/polaris/tree/main/persistence/nosql/persistence
lucasbrynte commentedon Jun 3, 2026
It seems @97harsh did attend the Apache Polaris Community Sync at 2026-01-22, where this was discussed at 33-48 min into the recording:
https://drive.google.com/file/d/1Hw-H6Gc-PhTXTrgz3vt6Q2sXnz4Nd4s1/view?usp=sharing
@dimas-b I think you were also in it - and it was floated that you and Harsh may collaborate on writing up a feature request document?
Prashant Singh also ended up referring to an existing Polaris endpoint for multi-table commits, but it didn't get completely clear to me to what extent that existing feature would fulfill the needs. Anyone who has any idea?
dimas-b commentedon Jun 3, 2026
@janhoy : point taken about docs 😅 we have #3398 lest we forget, but as usual different priorities intervene 😅
I'm open to collaboration, of course. It's good to see interest in this feature 👍
Contributions or even discussions on
devor community syncs are more than welcome. I hope that might invigorate the community regarding more advanced applications.From my POV a
devlist discussion is probably the best path forward ATM. GH comments are good, but not as visible to the larger community asdevemails.2 remaining items
lucasbrynte commentedon Jun 5, 2026
It is now 2 years since Dremio announced that Polaris was planned "to be merged with Nessie". Does anybody know if there is still an ambition to merge the two, and if not, what has happened since to cause the change of direction?
https://www.dremio.com/newsroom/polaris-catalog-to-be-merged-with-nessie-now-available-on-github/
janhoy commentedon Jul 1, 2026
Perhaps the whole open source contribution plan has changed as SAP acquired Dremio? That would be a pity.
dimas-b commentedon Jul 1, 2026
Obviously there's interest in this feature 😉 I encourage starting a
devthread on this. ML discussions generally have more visibility.I think the key aspect here is the presence of use cases that people want to implement based on Polaris. A large portion of Polaris developers may simply not be aware of them. Describing them from the user perspective will probably produce more engagement on the
devML. Obviously getting new contributors that are willing to collaborate on implementing the missing pieces is a big factor too since Polaris is an ASF project 🙂JasonRobertsonSsi commentedon Oct 1, 2026
This is definitely something I am interested in. From the previous announcement with Nessie and Polaris I thought this was a no brainer feature that was coming.
dimas-b commentedon Oct 3, 2026
@JasonRobertsonSsi : I am glad to see interest in this feature. I believe the best path forward is for Polaris users (like you 🙂 ) to open a discussion thread for this on the
devML. GH issues are nice for tracking backlog items, but discussing real life use cases and related design changes are best done on the mailing list, I think.kotwal-itpro commentedon Oct 7, 2026
I'd like to pick this up and help move it forward, as @dimas-b suggested.
I've been working on atomic commit semantics for Iceberg writers elsewhere (native Iceberg support for Apache Hop, and checkpoint recovery fixes in Flink), and multi-table promotion is the piece that's still missing on the catalog side.
My rough idea is to build on what Polaris already has rather than adding a separate versioning layer:
commitTransactionuses, so every table'smainref moves in one atomic metastore update or none of them do.I'll write this up properly and start a
[DISCUSS]thread on dev@ this week, then bring it to the next community sync. @97harsh @lucasbrynte @JasonRobertsonSsi @andyslucky it would really help to hear your concrete use cases there (number of tables, how long a branch lives, whether you need anything beyond fast-forward promotion), since that should drive the scope of a first version.dimas-b commentedon Oct 7, 2026
Thanks for volunteering, @kotwal-itpro !
I'm not sure about this, but let's discuss implementation approaches on
dev.kotwal-itpro commentedon Oct 7, 2026
Thanks @dimas-b, sounds good. The thread is up on dev: https://lists.apache.org/thread/zmvrf05z1m100pko8qc0syj982yrwpzx. Happy to look at other approaches there, including keeping the branch membership out of a new entity type.
dimas-b commentedon Oct 8, 2026
Since
devdiscussions started, I'm flagging this issue as a proposal.dengn commentedon Oct 14, 2026
+1 — this matches a problem we’ve been living with on the SQL side.
At MatrixOrigin we’ve been building branch / snapshot / diff / merge for tables (Git4Data on MatrixOne) mainly for two workloads: multi-table backfills, and agent-authored data changes that must be reviewed before they hit main. Same shape as this issue: create a branch over a set of tables, write off to the side, promote atomically — or don’t.
What we keep learning is that create + atomic promote is necessary but not sufficient. The gate that actually unblocks production use is a multi-table diff (row-level where possible) that a human or policy can approve before promote. Iceberg/Polaris sits at a different layer, but the operator expectation is the same: don’t flip main until someone has seen what changes.
We wrote that loop up here if useful as prior art / adjacent design notes:
On the proposal:
Glad this is on the proposal track.
kotwal-itpro commentedon Oct 14, 2026
Thanks @dengn, this is really useful, and good to hear the same pattern from the SQL side. The Git4Data write-up on multi-table publish is a nice reference.
On the review step before promote, agreed. Here's how I see it fitting:
mainand movesmainto the branch head. So it can show the change before it promotes, for example with an incremental or changelog scan between the two snapshots of each table. I'll add a short "review before you promote" step to that docs page, so it doesn't read as create-and-flip only.GET .../branches/{name}/diff) is already in the plan, so a reviewer or a policy check can look at the change first and promote only that state. Promote already takes the state the caller expects, so what was reviewed is exactly what gets promoted. I'll add the response fields to the design doc.Your two branch lifetimes, minutes to hours for agent changes and days for backfills, are also a good input for the cleanup question. Short-lived branches are where blocking snapshot expiry in v1 costs least.
Update: both done. #5740 now has a "Review the change" step before promoting (1ab13dc), and the design doc's promote and diff endpoints now return each table's before and after state, with promote requiring the reviewed branch state.
Docs: promote changes across tables with one multi-table commit
Docs: promote changes across tables with one multi-table commit
Docs: promote changes across tables with one multi-table commit