apache / apache/paimon

[Feature] Delete old schema file

Open
#3,449 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
3.4k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
396

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar.

### Motivation

Now, paimon cannot delete schema files, even old schema version file is not related to any snapshot.
It is not friendly for our situation that we will set a time attribute fields in table property to let other server know data synchronization progress. This will make each property update operation trigger a new paimon schema file.
![image](https://github.com/apache/paimon/assets/51162281/1f88a97d-8ef0-4999-885b-699d2062a812)
![image](https://github.com/apache/paimon/assets/51162281/b87dd2ce-960d-43df-8f2c-cc732836ec40)

### Solution

I find a issue desribed same problem https://github.com/apache/paimon/pull/2662.
This issue suggest use procedure to manual delete schema files. But I don't see any process.

### Anything else?

_No response_

### Are you willing to submit a PR?

- [X] I'm willing to submit a PR!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the schema-file handling discussed in pull request #2662 and trace how schema versions are associated with snapshots. Determine the intended deletion workflow for schema files no longer referenced by snapshots, then add coverage for the selected behavior and verify that unrelated schema versions remain safe.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.