iceberg icon indicating copy to clipboard operation
iceberg copied to clipboard

Does iceberg have a plan to support Multi-Statement and Multi-Table Transactions ?

Open yiguolei opened this issue 6 years ago • 9 comments

yiguolei avatar May 28 '20 03:05 yiguolei

This should be possible, but as far as I know, no processing engines support it. Until then, it doesn't make much sense to worry about it for Iceberg.

rdblue avatar May 29 '20 20:05 rdblue

Why does it relate with processing engines?

yiguolei avatar Jun 01 '20 03:06 yiguolei

The primary way to work with Iceberg tables is through a processing engine like Presto or Spark. Without cross-table transaction support in those, there would be no way to use it besides going directly to the API.

rdblue avatar Jun 02 '20 16:06 rdblue

I think this might be a useful feature. Suppose I want to atomically add columns to two iceberg tables, is there a way to do this with current API?

lirui-apache avatar Mar 17 '23 03:03 lirui-apache

@lirui-apache : Currently, With the Nessie catalog it is possible to achieve multi-table transactions via branching and merging. https://projectnessie.org/features/transactions/#cross-table-transactions

Recently, the community is working on Catalog level transactions to support multi-table transactions https://github.com/apache/iceberg/pull/6948

ajantha-bhat avatar Mar 17 '23 05:03 ajantha-bhat

@ajantha-bhat thanks for the pointers. Our metadata is stored in HMS and I don't think we can migrate off any time soon. I'm not sure if this can be achieved with HiveCatalog, since IIRC the HMS doesn't support altering multi tables in a single transaction.

lirui-apache avatar Mar 17 '23 07:03 lirui-apache

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.

github-actions[bot] avatar Feb 10 '24 00:02 github-actions[bot]

Status can be tracked from https://github.com/apache/iceberg/projects/30

ajantha-bhat avatar Feb 10 '24 01:02 ajantha-bhat

Hi @rdblue , Is there any engine starts supporting Multi-Table transactions?

HemantMarve avatar Sep 13 '24 07:09 HemantMarve