Skip to content

Spark 4.1: Add Spark REST_CATALOG_PURGE property to delegate DROP TABLE PURGE to REST catalogs#17186

Open
jackylee-ch wants to merge 1 commit into
apache:mainfrom
jackylee-ch:spark-4.1-rest-catalog-purge-backport
Open

Spark 4.1: Add Spark REST_CATALOG_PURGE property to delegate DROP TABLE PURGE to REST catalogs#17186
jackylee-ch wants to merge 1 commit into
apache:mainfrom
jackylee-ch:spark-4.1-rest-catalog-purge-backport

Conversation

@jackylee-ch

Copy link
Copy Markdown
Contributor

Backport of #15614 to Spark 4.1.

Adds the rest-catalog-purge catalog property. When enabled and the configured catalog is a REST catalog, Spark delegates DROP TABLE ... PURGE to the catalog (sending purgeRequested=true) instead of performing client-side file deletion. Defaults to false, so non-REST catalogs and existing behavior are unaffected.

This is a clean backport with no logic changes from the Spark 3.5 implementation. Companion to #17185 (Spark 4.0).

…LE PURGE to REST catalogs

Backport of apache#15614 to Spark 4.1.

Adds the `rest-catalog-purge` catalog property. When enabled and the
configured catalog is a REST catalog, Spark delegates DROP TABLE PURGE to
the catalog (sending purgeRequested=true) instead of performing client-side
file deletion. Defaults to false, so non-REST catalogs and existing behavior
are unaffected.
@jackylee-ch

Copy link
Copy Markdown
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant