GetWorkUnitResults
Returns the work units resulting from the query. Work units can be executed in any order and in parallel.
Request Syntax
{
"QueryId": "string
",
"WorkUnitId": number
,
"WorkUnitToken": "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 for which to get results.
Type: String
Length Constraints: Fixed length of 36.
Required: Yes
- WorkUnitId
-
The work unit ID for which to get results. Value generated by enumerating
WorkUnitIdMin
toWorkUnitIdMax
(inclusive) from theWorkUnitRange
in the output ofGetWorkUnits
.Type: Long
Valid Range: Minimum value of 0.
Required: Yes
- WorkUnitToken
-
A work token used to query the execution service. Token output from
GetWorkUnits
.Type: String
Length Constraints: Minimum length of 1.
Required: Yes
Response Syntax
{
"ResultStream": blob
}
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.
- ResultStream
-
Rows returned from the
GetWorkUnitResults
operation as a stream of Apache Arrow v1.0 messages.Type: Base64-encoded binary data object
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
- 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: