Prerequisites
Choose a writable Iceberg catalog and an unused practice namespace in Workbench. Native manifest optimization currently requires an existing format-v2 table. This example replaces onlymaintenance_docs.manifest_demo and uses inline rows.
Create writes, optimize, and verify
Read the result
TheCALL result has two counters:
A small table may have little to reorganize. Zero rewritten manifests can be a successful result. The number of data files and visible rows should not change because of a manifest-only rewrite.
Record the snapshot and history before the call, wait for successful publication, then refresh the table inspection. Recheck the same logical rows. On an active table, separate changes from concurrent writers from the effect of this operation.
Use the familiar alias
The same metadata action is available asrewrite_manifests. This example reuses the table created above and uses the instance’s metadata-size default.