Re: Append file and update properties in a single transaction

2020-12-07 Thread Omar Aloraini
Wow, Thanks a lot. I will try it tomorrow. 🙏🙏 On Mon, Dec 7, 2020, 9:25 PM Ryan Blue wrote: > Transactions do support property updates: > https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/BaseTransaction.java#L106-L111 > > The commit check is to ensure that the

Re: Append file and update properties in a single transaction

2020-12-07 Thread Ryan Blue
Transactions do support property updates: https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/BaseTransaction.java#L106-L111 The commit check is to ensure that the last operation was complete before adding a new operation. You need to call commit on each operation c

Re: Append file and update properties in a single transaction

2020-12-07 Thread Omar Aloraini
Hi Ryan, thanks for the reply, I can't recall the class name (will update you once I check), I think it was TransactionalTable, every method that modifies the table has a check weather the last part of a transaction (belonging to the same object created by table.newTransaction) was committed, i.e.

Re: Append file and update properties in a single transaction

2020-12-07 Thread Ryan Blue
Omar, You can append files and update properties. You just need to create a transaction using `newTransaction` in the `Table` API. rb On Sun, Dec 6, 2020 at 7:16 AM Omar Aloraini wrote: > Hello everyone, > > I'm trying to append new files and update the table properties in single > transaction

Append file and update properties in a single transaction

2020-12-06 Thread Omar Aloraini
Hello everyone, I'm trying to append new files and update the table properties in single transaction, but it seems from the source code that I can't. Is their a workaround for this? Regards