Skip to content

get_column_statistics_task_runs

get_column_statistics_task_runs(
    database_name: DatabaseName,
    table_name: NameString,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    max_results: Optional[PageSize] = None,
    next_token: Optional[Token] = None,
    catalog_id: Optional[CatalogIdString] = None,
) -> GetColumnStatisticsTaskRunsResponse

Retrieves information about all runs associated with the specified table.

Parameters:

  • database_name (DatabaseName) –

    The name of the database where the table resides.

  • table_name (NameString) –

    The name of the table.

  • max_results (Optional[PageSize], default: None ) –

    The maximum size of the response.

  • next_token (Optional[Token], default: None ) –

    A continuation token, if this is a continuation call.

  • 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 get_column_statistics_task_runs(
    self,
    database_name: "capo_glue.types.database_name.DatabaseName",
    table_name: "capo_glue.types.name_string.NameString",
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    max_results: Optional["capo_glue.types.page_size.PageSize"] = None,
    next_token: Optional["capo_glue.types.token.Token"] = None,
    catalog_id: Optional[
        "capo_glue.types.catalog_id_string.CatalogIdString"
    ] = None,
) -> "capo_glue.types.get_column_statistics_task_runs_response.GetColumnStatisticsTaskRunsResponse":
    """<p>Retrieves information about all runs associated with the specified table.</p>

    Args:
        database_name: <p>The name of the database where the table resides.</p>
        table_name: <p>The name of the table.</p>
        max_results: <p>The maximum size of the response.</p>
        next_token: <p>A continuation token, if this is a continuation call.</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.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.get_column_statistics_task_runs_request.GetColumnStatisticsTaskRunsRequest]",
    ) -> OperationResponse[
        "capo_glue.types.get_column_statistics_task_runs_response.GetColumnStatisticsTaskRunsResponse"
    ]:
        import capo_glue._operations.aws_glue.get_column_statistics_task_runs

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetColumnStatisticsTaskRuns")
    )
    input_: capo_glue.types.get_column_statistics_task_runs_request.GetColumnStatisticsTaskRunsRequest = {
        "database_name": database_name,
        "table_name": table_name,
    }
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token
    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