iceberg-python icon indicating copy to clipboard operation
iceberg-python copied to clipboard

Add Support for Dynamic Overwrite

Open jqin61 opened this issue 1 year ago • 5 comments

Added support for dynamic overwrite leveraging delete and fast-append(counterpart in Iceberg Spark).

Several follow-ups:

  • to support current spec with transformed fields. Should be easy but due to the number of transforms, this takes some time. Will add them bit by bit in follow-up prs.
  • could consider whether to raise userwarning when no delete is executed. Because from prespectives of users of dynamic overwrite, they should not worry about whether it is an pure append or a partition replacement.

jqin61 avatar Jul 15 '24 19:07 jqin61

Left some more comments @jqin61, thanks for working on this 👍

Fokko avatar Jul 17 '24 09:07 Fokko

@jqin61 Sorry for the slow review, I was doing some other stuff as well. Can you fix the merge conflicts? I think this looks good to go 👍

Fokko avatar Aug 07 '24 07:08 Fokko

@jqin61 Sorry for the slow review, I was doing some other stuff as well. Can you fix the merge conflicts? I think this looks good to go 👍

Thank you Fokko! Sorry for the delay, I was extremely busy recently, I will get some time next weekend to fix the comments, add tests and fix the documentation. I will also move the transform support out of the scope of this pr due to its complexity, will send you details about it soon.

jqin61 avatar Aug 07 '24 16:08 jqin61

Thank you for making this contribution @jqin61 ! I'll leave this PR open for another review, especially given that it introduces a new table commit API

sungwy avatar Sep 20 '24 00:09 sungwy

Hi @Fokko - this PR looks good from my end.

Would you have some time to take a look? Since this is a new API (which comes with another level of caution), I'd love to get your review before we merge in @jqin61 's awesome work

sungwy avatar Sep 24 '24 18:09 sungwy

@jqin61 @sungwy Sorry for leaving this hanging, I'll do a review first thing tomorrow 👍

Fokko avatar Nov 04 '24 18:11 Fokko

@jqin61 Do you have time to follow up on the last few comments? Would be great to get this in 👍

Fokko avatar Nov 19 '24 22:11 Fokko

@Fokko @sungwy Thank you for the review and the suggestions! I fixed the latest comments and let's rerun CI and merge it if looks good to you.

jqin61 avatar Dec 10 '24 06:12 jqin61

Thanks for fixing the CI, shall we rerun and merge? @Fokko Thank you!

jqin61 avatar Dec 11 '24 23:12 jqin61