delta-io / delta

An open-source storage framework that enables building a Lakehouse architecture with compute engines including Spark, PrestoDB, Flink, Trino, and Hive and APIs
https://delta.io
Apache License 2.0
7.6k stars 1.71k forks source link

[Feature Request] Add truncate history support for DROP FEATURE command #2008

Open andreaschat-db opened 1 year ago

andreaschat-db commented 1 year ago

Feature request

Which Delta project/connector is this regarding?

Overview

The DROP FEATURE command allows to drop table features from Delta Tables. Dropping a reader+writer feature is performed in two steps:

We clean all traces of the feature in the latest version and inform the user they need to wait until the retention period is over. After the retention period is over, the user executes the command again and the protocol is downgraded.

This feature request is about adding the TRUNCATE HISTORY option in DROP FEATURE command. The new option automatically sets the history retention period to minimum and cleans up metadata. This operation occurs at the second time the user invokes the operation.

Motivation

The new option allows the user to drop features more easily without having to wait the default retention period or manually change the retention period.

Willingness to contribute

The Delta Lake Community encourages new feature contributions. Would you or another member of your organization be willing to contribute an implementation of this feature?

RickLeite commented 3 months ago

up