apache / apache/iotdb

Delete the data file if it has no valid data

Open
#2,138 0 comments 0 reactions 0 assignees View on GitHub
Easy-Fixed Module - Storage Engine
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

Currently, when we execute "delete from root.sg.* where time < T", we write modifications besides the deleted TsFile.

It's better to delete the file that does not have valid data.

Contributor guide

Open the contributing guide

Research direction

Start by tracing how `delete from root.sg.* where time < T` handles the affected TsFile and writes modifications. Determine how the system identifies that a file has no valid data, then verify that such a file is deleted rather than retained with modification records.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.