Add `delete_files`

Open
#2,787 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
50/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

Start with PyIceberg’s existing Add Files API and compare its behavior with the linked Java DeleteFiles and OverwriteFiles APIs. Define the supported delete_files or overwrite semantics and verify that the completed feature lets callers remove or replace existing data files without creating duplicates.

Written by the indexing model from the issue text.

Description

Feature Request / Improvement

Hello All,

First of all, apologies as I am not very experienced with PyIceberg.

I currently have a Java application that "manually" updates table metadata and can add new files if they don't exist and replace older files if they already do. This guarantees that, as long as the file names are fixed, I should not have duplicates.

In Java, I use deleteFile and then addFile.

In PyIceberg, I can Add Files, but I don't see options to "Delete Files" or overwrite.

Is delete_files() a feature that you could add?

Dominant language
Python
Stars
1.1k
Forks
589
Avg merge
2d 4h
Merged PRs (30d)
72

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/iceberg-python

All issues in apache/iceberg-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.