Skip to main content

table_statistics

Creates, updates, deletes, gets or lists a table_statistics resource.

Overview

Nametable_statistics
TypeResource
Idaws.dms.table_statistics

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
applied_ddlsinteger (int64)The number of data definition language (DDL) statements used to build and modify the structure of your tables applied on the target.
applied_deletesinteger (int64)The number of delete actions applied on a target table.
applied_insertsinteger (int64)The number of insert actions applied on a target table.
applied_updatesinteger (int64)The number of update actions applied on a target table.
ddlsinteger (int64)The data definition language (DDL) used to build and modify the structure of your tables.
deletesinteger (int64)The number of delete actions performed on a table.
full_load_condtnl_chk_failed_rowsinteger (int64)The number of rows that failed conditional checks during the full load operation (valid only for migrations where DynamoDB is the target).
full_load_end_timestring (date-time)The time when the full load operation completed.
full_load_error_rowsinteger (int64)The number of rows that failed to load during the full load operation (valid only for migrations where DynamoDB is the target).
full_load_reloadedbooleanA value that indicates if the table was reloaded (true) or loaded as part of a new full load operation (false).
full_load_rowsinteger (int64)The number of rows added during the full load operation.
full_load_start_timestring (date-time)The time when the full load operation started.
insertsinteger (int64)The number of insert actions performed on a table.
last_update_timestring (date-time)The last time a table was updated.
resync_progressnumber (double)Calculates the percentage of failed validations that were successfully resynced to the system.
resync_rows_attemptedinteger (int64)Records the total number of mismatched data rows where the system attempted to apply fixes in the target database.
resync_rows_failedinteger (int64)Records the total number of mismatched data rows where fix attempts failed in the target database.
resync_rows_succeededinteger (int64)Records the total number of mismatched data rows where fixes were successfully applied in the target database.
resync_statestringRecords the current state of table resynchronization in the migration task. This parameter can have the following values: Not enabled – Resync is not enabled for the table in the migration task. Pending – The tables are waiting for resync. In progress – Resync in progress for some records in the table. No primary key – The table could not be resynced because it has no primary key. Last resync at: date/time – Resync session is finished at time. Time provided in UTC format.
schema_namestringThe schema name.
table_namestringThe name of the table.
table_statestringThe state of the tables described. Valid states: Table does not exist | Before load | Full load | Table completed | Table cancelled | Table error | Table is being reloaded
updatesinteger (int64)The number of update actions performed on a table.
validation_failed_recordsinteger (int64)The number of records that failed validation.
validation_pending_recordsinteger (int64)The number of records that have yet to be validated.
validation_statestringThe validation state of the table. This parameter can have the following values: Not enabled – Validation isn't enabled for the table in the migration task. Pending records – Some records in the table are waiting for validation. Mismatched records – Some records in the table don't match between the source and target. Suspended records – Some records in the table couldn't be validated. No primary key –The table couldn't be validated because it has no primary key. Table error – The table wasn't validated because it's in an error state and some data wasn't migrated. Validated – All rows in the table are validated. If the table is updated, the status can change from Validated. Error – The table couldn't be validated because of an unexpected error. Pending validation – The table is waiting validation. Preparing table – Preparing the table enabled in the migration task for validation. Pending revalidation – All rows in the table are pending validation after the table was updated.
validation_state_detailsstringAdditional details about the state of validation.
validation_suspended_recordsinteger (int64)The number of records that couldn't be validated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_table_statisticsselectregionReturns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted. Note that the "last updated" column the DMS console only indicates the time that DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns table statistics on the database migration task, including table name, rows inserted, rows updated, and rows deleted. Note that the "last updated" column the DMS console only indicates the time that DMS last updated the table statistics record for a table. It does not indicate the time of the last update to the table.

SELECT
applied_ddls,
applied_deletes,
applied_inserts,
applied_updates,
ddls,
deletes,
full_load_condtnl_chk_failed_rows,
full_load_end_time,
full_load_error_rows,
full_load_reloaded,
full_load_rows,
full_load_start_time,
inserts,
last_update_time,
resync_progress,
resync_rows_attempted,
resync_rows_failed,
resync_rows_succeeded,
resync_state,
schema_name,
table_name,
table_state,
updates,
validation_failed_records,
validation_pending_records,
validation_state,
validation_state_details,
validation_suspended_records
FROM aws.dms.table_statistics
WHERE region = '{{ region }}' -- required
;