Skip to content

start_column_statistics_task_run_schedule

start_column_statistics_task_run_schedule(
    database_name: NameString,
    table_name: NameString,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    catalog_id: Optional[CatalogIdString] = None,
) -> StartColumnStatisticsTaskRunScheduleResponse

Starts a column statistics task run schedule.

Parameters:

  • database_name (NameString) –

    The name of the database where the table resides.

  • table_name (NameString) –

    The name of the table for which to start a column statistic task run schedule.

  • catalog_id (Optional[CatalogIdString], default: None ) –

    The ID of the Data Catalog where the table resides. If none is supplied, the Amazon Web Services account ID is used by default.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def start_column_statistics_task_run_schedule(
    self,
    database_name: "capo_glue.types.name_string.NameString",
    table_name: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    catalog_id: Optional[
        "capo_glue.types.catalog_id_string.CatalogIdString"
    ] = None,
) -> "capo_glue.types.start_column_statistics_task_run_schedule_response.StartColumnStatisticsTaskRunScheduleResponse":
    """<p>Starts a column statistics task run schedule.</p>

    Args:
        database_name: <p>The name of the database where the table resides.</p>
        table_name: <p>The name of the table for which to start a column statistic task run schedule.</p>
        catalog_id: <p>The ID of the Data Catalog where the table resides. If none is supplied, the Amazon Web Services account ID is used by default.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.entity_not_found_exception.EntityNotFoundException: <p>A specified entity does not exist</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.operation_timeout_exception.OperationTimeoutException: <p>The operation timed out.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.start_column_statistics_task_run_schedule_request.StartColumnStatisticsTaskRunScheduleRequest]",
    ) -> OperationResponse[
        "capo_glue.types.start_column_statistics_task_run_schedule_response.StartColumnStatisticsTaskRunScheduleResponse"
    ]:
        import capo_glue._operations.aws_glue.start_column_statistics_task_run_schedule

        output, http_response = (
            capo_glue._operations.aws_glue.start_column_statistics_task_run_schedule.start_column_statistics_task_run_schedule(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("StartColumnStatisticsTaskRunSchedule")
    )
    input_: capo_glue.types.start_column_statistics_task_run_schedule_request.StartColumnStatisticsTaskRunScheduleRequest = {
        "database_name": database_name,
        "table_name": table_name,
    }
    if catalog_id is not None:
        input_["catalog_id"] = catalog_id

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output