[DISCUSSION] [CARBONDATA-4270]New DDL: delete table tableName expect segment.remain_number = $n

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[DISCUSSION] [CARBONDATA-4270]New DDL: delete table tableName expect segment.remain_number = $n

Parker Liu
Hi everyone,
In some scenarios, i need to delete segment in batches and save one or more segments.
currently, i can do like:
1. show the segment id list
2. split id list to deleteId list
3. delete segment by deleteId list
i must execute two sql. so i want to add a new ddl to delete by remaining segment number.

Following is the link to the DDL design document. Please give your valuable
comments/inputs/suggestions.

https://docs.google.com/document/d/1rBUlRdbnMpNqJrhiIOtp3eEie4YH5pKmJpTw4QD_0mw/edit?usp=sharing