GetQueryStatistics - Lake Formation

GetQueryStatistics

Retrieves statistics on the planning and execution of a query.

Request Syntax

{ "QueryId": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

QueryId

The ID of the plan query operation.

Type: String

Length Constraints: Fixed length of 36.

Required: Yes

Response Syntax

{ "ExecutionStatistics": { "AverageExecutionTimeMillis": number, "DataScannedBytes": number, "WorkUnitsExecutedCount": number }, "PlanningStatistics": { "EstimatedDataToScanBytes": number, "PlanningTimeMillis": number, "QueueTimeMillis": number, "WorkUnitsGeneratedCount": number }, "QuerySubmissionTime": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

ExecutionStatistics

An ExecutionStatistics structure containing execution statistics.

Type: ExecutionStatistics object

PlanningStatistics

A PlanningStatistics structure containing query planning statistics.

Type: PlanningStatistics object

QuerySubmissionTime

The time that the query was submitted.

Type: Timestamp

Errors

For information about the errors that are common to all actions, see Common Errors.

AccessDeniedException

Access to a resource was denied.

HTTP Status Code: 400

ExpiredException

Contains details about an error where the query request expired.

HTTP Status Code: 400

InternalServiceException

An internal service error occurred.

HTTP Status Code: 500

InvalidInputException

The input provided was not valid.

HTTP Status Code: 400

StatisticsNotReadyYetException

Contains details about an error related to statistics not being ready.

HTTP Status Code: 400

ThrottledException

Contains details about an error where the query request was throttled.

HTTP Status Code: 400

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: