fabric_run_table_maintenance
Perform table maintenance on a lakehouse table using OPTIMIZE, V-Order, or VACUUM to improve query performance and manage storage.
Instructions
Run table maintenance (OPTIMIZE / V-Order / VACUUM) on a lakehouse table (long-running).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lakehouseId | Yes | Lakehouse ID | |
| tableName | Yes | Table to maintain | |
| schemaName | No | Schema name (schema-enabled lakehouses) | |
| optimize | No | Run OPTIMIZE | |
| vOrder | No | Apply V-Order during optimize | |
| vacuumRetentionDays | No | VACUUM retention in days | |
| workspace | No | Workspace ID (defaults to FABRIC_DEFAULT_WORKSPACE) |