mc table maintenance update
The mc table maintenance update command updates a table-level maintenance override.
Syntax
The command has the following syntax:
mc table maintenance update [FLAGS] ALIAS/WAREHOUSE/NAMESPACE/TABLEFlags
| Flag | Description |
|---|---|
--type value | Maintenance type (icebergSnapshotManagement, icebergUnreferencedFileRemoval, icebergCompaction) (required). |
--status value | Maintenance status (enabled, disabled). |
--max-age-hours value | Maximum snapshot age in hours before expiration. |
--min-snapshots value | Minimum number of snapshots to keep. |
--target-file-size-mb value | Target file size in MB for compacted files (for icebergCompaction). |
--unreferenced-days value | Days a file must be unreferenced before being marked noncurrent. |
--noncurrent-days value | Days a noncurrent file is retained before permanent deletion (icebergUnreferencedFileRemoval only). |
--interval value | How often this maintenance type runs, in minutes. |
Global flags
This command supports any of the global flags.
Examples
Disable snapshot management for one table.
mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergSnapshotManagement --status disabledTighten the maximum snapshot age for one table.
mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergSnapshotManagement --max-age-hours 24Re-enable compaction for one table with a custom target file size.
mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergCompaction --status enabled --target-file-size-mb 64Change how often compaction runs for one table, without touching any other setting.
mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergCompaction --interval 5Exclude one table from compaction, e.g. to preserve a sort order that compaction cannot reproduce.
mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergCompaction --status disabledGive a table its own noncurrent-days, independent of the warehouse-wide value.
mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergUnreferencedFileRemoval --noncurrent-days 3Behavior
S3 compatibility
The mc command-line tool is built for compatibility with the AWS S3 API and is tested with MinIO AIStor and AWS S3 for expected functionality and behavior.