LakeFormation.Client.
get_query_statistics
(**kwargs)¶Retrieves statistics on the planning and execution of a query.
See also: AWS API Documentation
Request Syntax
response = client.get_query_statistics(
QueryId='string'
)
[REQUIRED]
The ID of the plan query operation.
{
'ExecutionStatistics': {
'AverageExecutionTimeMillis': 123,
'DataScannedBytes': 123,
'WorkUnitsExecutedCount': 123
},
'PlanningStatistics': {
'EstimatedDataToScanBytes': 123,
'PlanningTimeMillis': 123,
'QueueTimeMillis': 123,
'WorkUnitsGeneratedCount': 123
},
'QuerySubmissionTime': datetime(2015, 1, 1)
}
Response Structure
An ExecutionStatistics
structure containing execution statistics.
The average time the request took to be executed.
The amount of data that was scanned in bytes.
The number of work units executed.
A PlanningStatistics
structure containing query planning statistics.
An estimate of the data that was scanned in bytes.
The time that it took to process the request.
The time the request was in queue to be processed.
The number of work units generated.
The time that the query was submitted.
Exceptions
LakeFormation.Client.exceptions.StatisticsNotReadyYetException
LakeFormation.Client.exceptions.InternalServiceException
LakeFormation.Client.exceptions.InvalidInputException
LakeFormation.Client.exceptions.AccessDeniedException
LakeFormation.Client.exceptions.ExpiredException
LakeFormation.Client.exceptions.ThrottledException