Skip to content

feat: support to append delete type data file - #798

Closed
ZENOTME wants to merge 1 commit into
apache:mainfrom
ZENOTME:support_append_delete
Closed

ZENOTME wants to merge 1 commit into
apache:mainfrom
ZENOTME:support_append_delete

Conversation

@ZENOTME

@ZENOTME ZENOTME commented Dec 13, 2024

Copy link
Copy Markdown
Contributor

This PR support to support to append delete type data file

@ZENOTME

ZENOTME commented Dec 13, 2024

Copy link
Copy Markdown
Contributor Author

cc @liurenjie1024 @Xuanwo @Fokko @sdd

@ZENOTME

ZENOTME commented Dec 14, 2024 •

Copy link
Copy Markdown
Contributor Author

@ZENOTME

ZENOTME commented Dec 14, 2024

Copy link
Copy Markdown
Contributor Author

I noticed that MergingSnapshotProducer work like the MergeAppend, it will merge manifest when commit. Is that necessary for RowDelta?🤔 Can we implement RowDelta works like FastAppend but it can append data file and delete type file first here? I trying a demo using this way and it can query using spark. @Fokko

@liurenjie1024

Copy link
Copy Markdown
Contributor

Thanks @ZENOTME for this pr! Adding support for deletion is a complicated process, which involves conflict detection, commit retries. I would suggest to have sth like you mention built first like ManifestMergerManager, ManifestFilterManager, MergingSnapshot appender first.

@ZENOTME

ZENOTME commented Dec 21, 2024

Copy link
Copy Markdown
Contributor Author

Thanks @ZENOTME for this pr! Adding support for deletion is a complicated process, which involves conflict detection, commit retries. I would suggest to have sth like you mention built first like ManifestMergerManager, ManifestFilterManager, MergingSnapshot appender first.

I want to make sure whether fast append, merge append, append data file, append delete file is orthogonal. For now, in iceberg-python and iceberg-java:

  • FastAppend action is for fast append and append data file.
  • MergeAppend action is for merge append and append data file.
  • RowDelta action is for merge append and append delete files and data files.

Is it possible to have action like combing fast append and append delete file and data file? In fact, I try this in practice and it can be read by spark. And for this action, I think we don't need the ManifestMergerManager.🤔

@liurenjie1024

Copy link
Copy Markdown
Contributor

Is it possible to have action like combing fast append and append delete file and data file? In fact, I try this in practice and it can be read by spark. And for this action, I think we don't need the ManifestMergerManager.

The reason we can have a fast append action in iceberg is that append only data file always have no conflict with other actions. Remember that iceberg supports concurrent write, so for update/deletion actions, we need to detect conflction. It works in simple case doesn't mean it's right.

@ZENOTME

ZENOTME commented Dec 23, 2024

Copy link
Copy Markdown
Contributor Author

Is it possible to have action like combing fast append and append delete file and data file? In fact, I try this in practice and it can be read by spark. And for this action, I think we don't need the ManifestMergerManager.

The reason we can have a fast append action in iceberg is that append only data file always have no conflict with other actions. Remember that iceberg supports concurrent write, so for update/deletion actions, we need to detect conflction. It works in simple case doesn't mean it's right.

Do you mean that for appending only the data file, we can always retry by using the original data file, but for delete data file, the related data may be deleted already, so we should use something like ManifestMergerManager to merge and discard the useless delete file.

I think for now we have conflicting detect using uuid, but we don't have the retry.

self.tx.append_requirements(vec![
.

@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Feb 26, 2026
@github-actions

github-actions Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions Bot closed this Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants