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/TABLE

Flags

FlagDescription
--type valueMaintenance type (icebergSnapshotManagement, icebergUnreferencedFileRemoval, icebergCompaction) (required).
--status valueMaintenance status (enabled, disabled).
--max-age-hours valueMaximum snapshot age in hours before expiration.
--min-snapshots valueMinimum number of snapshots to keep.
--target-file-size-mb valueTarget file size in MB for compacted files (for icebergCompaction).
--unreferenced-days valueDays a file must be unreferenced before being marked noncurrent.
--noncurrent-days valueDays a noncurrent file is retained before permanent deletion (icebergUnreferencedFileRemoval only).
--interval valueHow 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 disabled

Tighten the maximum snapshot age for one table.

mc table maintenance update myminio/my-warehouse/my-namespace/my-table --type icebergSnapshotManagement --max-age-hours 24

Re-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 64

Change 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 5

Exclude 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 disabled

Give 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 3

Behavior

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.

On this page