Skip to content

/AWS1/CL_GLUICEBERGRETCONF

The configuration for an Iceberg snapshot retention optimizer.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_snapshotretperiodindays TYPE /AWS1/GLUNULLABLEINTEGER /AWS1/GLUNULLABLEINTEGER

The number of days to retain the Iceberg snapshots. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 5 will be used.

iv_numberofsnapshotstoretain TYPE /AWS1/GLUNULLABLEINTEGER /AWS1/GLUNULLABLEINTEGER

The number of Iceberg snapshots to retain within the retention period. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 1 will be used.

iv_cleanexpiredfiles TYPE /AWS1/GLUNULLABLEBOOLEAN /AWS1/GLUNULLABLEBOOLEAN

If set to false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted.

iv_runrateinhours TYPE /AWS1/GLUNULLABLEINTEGER /AWS1/GLUNULLABLEINTEGER

The interval in hours between retention job runs. This parameter controls how frequently the retention optimizer will run to clean up expired snapshots. The value must be between 3 and 168 hours (7 days). If an input is not provided, the default value 24 will be used.


Queryable Attributes

snapshotRetentionPeriodInDays

The number of days to retain the Iceberg snapshots. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 5 will be used.

Accessible with the following methods

Method Description
GET_SNAPSHOTRETPERIODINDAYS() Getter for SNAPSHOTRETPERIODINDAYS, with configurable defaul
ASK_SNAPSHOTRETPERIODINDAYS() Getter for SNAPSHOTRETPERIODINDAYS w/ exceptions if field ha
HAS_SNAPSHOTRETPERIODINDAYS() Determine if SNAPSHOTRETPERIODINDAYS has a value

numberOfSnapshotsToRetain

The number of Iceberg snapshots to retain within the retention period. If an input is not provided, the corresponding Iceberg table configuration field will be used or if not present, the default value 1 will be used.

Accessible with the following methods

Method Description
GET_NUMBEROFSNAPSTORETAIN() Getter for NUMBEROFSNAPSHOTSTORETAIN, with configurable defa
ASK_NUMBEROFSNAPSTORETAIN() Getter for NUMBEROFSNAPSHOTSTORETAIN w/ exceptions if field
HAS_NUMBEROFSNAPSTORETAIN() Determine if NUMBEROFSNAPSHOTSTORETAIN has a value

cleanExpiredFiles

If set to false, snapshots are only deleted from table metadata, and the underlying data and metadata files are not deleted.

Accessible with the following methods

Method Description
GET_CLEANEXPIREDFILES() Getter for CLEANEXPIREDFILES, with configurable default
ASK_CLEANEXPIREDFILES() Getter for CLEANEXPIREDFILES w/ exceptions if field has no v
HAS_CLEANEXPIREDFILES() Determine if CLEANEXPIREDFILES has a value

runRateInHours

The interval in hours between retention job runs. This parameter controls how frequently the retention optimizer will run to clean up expired snapshots. The value must be between 3 and 168 hours (7 days). If an input is not provided, the default value 24 will be used.

Accessible with the following methods

Method Description
GET_RUNRATEINHOURS() Getter for RUNRATEINHOURS, with configurable default
ASK_RUNRATEINHOURS() Getter for RUNRATEINHOURS w/ exceptions if field has no valu
HAS_RUNRATEINHOURS() Determine if RUNRATEINHOURS has a value