table_statistics
Creates, updates, deletes, gets or lists a table_statistics resource.
Overview
| Name | table_statistics |
| Type | Resource |
| Id | aws.dms.table_statistics |
Fields
The following fields are returned by SELECT queries:
- describe_table_statistics
| Name | Datatype | Description |
|---|---|---|
applied_ddls | integer (int64) | The number of data definition language (DDL) statements used to build and modify the structure of your tables applied on the target. |
applied_deletes | integer (int64) | The number of delete actions applied on a target table. |
applied_inserts | integer (int64) | The number of insert actions applied on a target table. |
applied_updates | integer (int64) | The number of update actions applied on a target table. |
ddls | integer (int64) | The data definition language (DDL) used to build and modify the structure of your tables. |
deletes | integer (int64) | The number of delete actions performed on a table. |
full_load_condtnl_chk_failed_rows | integer (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_time | string (date-time) | The time when the full load operation completed. |
full_load_error_rows | integer (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_reloaded | boolean | A value that indicates if the table was reloaded (true) or loaded as part of a new full load operation (false). |
full_load_rows | integer (int64) | The number of rows added during the full load operation. |
full_load_start_time | string (date-time) | The time when the full load operation started. |
inserts | integer (int64) | The number of insert actions performed on a table. |
last_update_time | string (date-time) | The last time a table was updated. |
resync_progress | number (double) | Calculates the percentage of failed validations that were successfully resynced to the system. |
resync_rows_attempted | integer (int64) | Records the total number of mismatched data rows where the system attempted to apply fixes in the target database. |
resync_rows_failed | integer (int64) | Records the total number of mismatched data rows where fix attempts failed in the target database. |
resync_rows_succeeded | integer (int64) | Records the total number of mismatched data rows where fixes were successfully applied in the target database. |
resync_state | string | Records 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_name | string | The schema name. |
table_name | string | The name of the table. |
table_state | string | The 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 |
updates | integer (int64) | The number of update actions performed on a table. |
validation_failed_records | integer (int64) | The number of records that failed validation. |
validation_pending_records | integer (int64) | The number of records that have yet to be validated. |
validation_state | string | The 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_details | string | Additional details about the state of validation. |
validation_suspended_records | integer (int64) | The number of records that couldn't be validated. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
describe_table_statistics | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- describe_table_statistics
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
;