Skip to main content

column_statistics_task_settings

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

Overview

Namecolumn_statistics_task_settings
TypeResource
Idaws.glue.column_statistics_task_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
catalog_idstringThe ID of the Data Catalog in which the database resides. (pattern: <code>[\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\t]*</code>)
column_name_listarrayA list of column names for which to run statistics.
database_namestringThe name of the database where the table resides.
last_execution_attemptobjectThe last ExecutionAttempt for the column statistics task run.
rolestringThe role used for running the column statistics.
sample_sizenumber (double)The percentage of data to sample.
scheduleobjectA schedule for running the column statistics, specified in CRON syntax.
schedule_typestringThe type of schedule for a column statistics task. Possible values may be CRON or AUTO. (CRON, AUTO)
security_configurationstringName of the security configuration that is used to encrypt CloudWatch logs.
setting_sourcestringThe source of setting the column statistics task. Possible values may be CATALOG or TABLE. (CATALOG, TABLE)
table_namestringThe name of the table for which to generate column statistics.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_column_statistics_task_settingsselectregionGets settings for a column statistics task.
create_column_statistics_task_settingsinsertregion, DatabaseName, TableName, RoleCreates settings for a column statistics task.
update_column_statistics_task_settingsupdateregion, DatabaseName, TableNameUpdates settings for a column statistics task.
delete_column_statistics_task_settingsdeleteregionDeletes settings for a column statistics task.

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

Gets settings for a column statistics task.

SELECT
catalog_id,
column_name_list,
database_name,
last_execution_attempt,
role,
sample_size,
schedule,
schedule_type,
security_configuration,
setting_source,
table_name
FROM aws.glue.column_statistics_task_settings
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates settings for a column statistics task.

INSERT INTO aws.glue.column_statistics_task_settings (
DatabaseName,
TableName,
Role,
Schedule,
ColumnNameList,
SampleSize,
CatalogID,
SecurityConfiguration,
Tags,
region
)
SELECT
'{{ DatabaseName }}' /* required */,
'{{ TableName }}' /* required */,
'{{ Role }}' /* required */,
'{{ Schedule }}',
'{{ ColumnNameList }}',
{{ SampleSize }},
'{{ CatalogID }}',
'{{ SecurityConfiguration }}',
'{{ Tags }}',
'{{ region }}'
;

UPDATE examples

Updates settings for a column statistics task.

UPDATE aws.glue.column_statistics_task_settings
SET
DatabaseName = '{{ DatabaseName }}',
TableName = '{{ TableName }}',
Role = '{{ Role }}',
Schedule = '{{ Schedule }}',
ColumnNameList = '{{ ColumnNameList }}',
SampleSize = {{ SampleSize }},
CatalogID = '{{ CatalogID }}',
SecurityConfiguration = '{{ SecurityConfiguration }}'
WHERE
region = '{{ region }}' --required
AND DatabaseName = '{{ DatabaseName }}' --required
AND TableName = '{{ TableName }}' --required;

DELETE examples

Deletes settings for a column statistics task.

DELETE FROM aws.glue.column_statistics_task_settings
WHERE region = '{{ region }}' --required
;