VACUUM syntax for Iceberg engine tables and Iceberg sinks. This allows you to manage storage, reclaim disk space, and optimize performance for Iceberg data within RisingWave.
Syntax
VACUUM: Rewrites eligible data manifests, then expires eligible old snapshots.VACUUM FULL: Compacts the specified Iceberg table or sink first, then performs the same manifest rewrite and snapshot expiration steps. This operation takes longer and requires extra disk space, as a new copy is written before the old copy is released.
The manifest rewrite and snapshot expiration steps do not override their maintenance settings. Manifest rewrite runs only when
enable_manifest_rewrite = true and the configured rewrite thresholds select an eligible batch. Snapshot expiration runs only when enable_snapshot_expiration = true.VACUUM FULL waits for the manual compaction task to finish before returning. If the target already has an automatic or manual compaction task queued or running, the new VACUUM FULL request returns an error instead of scheduling another task.