apache / apache/pinot

Table truncate command

Open
#5,559 20 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
2d 55m
Merged PRs (30d)
182

Description

Add truncate operation i.e. delete all contents of table, without removing table config and schema.

For offline, this simply means deleting all segments (everything a delete operation does, but keep the table/schema definition)
For realtime, this means deleting all segments, both completed and consuming. Then, we should recreate the ideal state, just like we would've for a new realtime table.

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing delete operation and the code paths for offline and realtime tables, especially where completed and consuming segments are handled. Confirm how a new realtime table's ideal state is created; done means truncation removes all data while preserving the table configuration and schema, including recreating the realtime ideal state.

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
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.