LakeFormation / Client / get_work_unit_results

get_work_unit_results#

LakeFormation.Client.get_work_unit_results(**kwargs)#

Returns the work units resulting from the query. Work units can be executed in any order and in parallel.

See also: AWS API Documentation

Request Syntax

response = client.get_work_unit_results(
    QueryId='string',
    WorkUnitId=123,
    WorkUnitToken='string'
)
Parameters:
  • QueryId (string) –

    [REQUIRED]

    The ID of the plan query operation for which to get results.

  • WorkUnitId (integer) –

    [REQUIRED]

    The work unit ID for which to get results. Value generated by enumerating WorkUnitIdMin to WorkUnitIdMax (inclusive) from the WorkUnitRange in the output of GetWorkUnits.

  • WorkUnitToken (string) –

    [REQUIRED]

    A work token used to query the execution service. Token output from GetWorkUnits.

Return type:

dict

Returns:

Response Syntax

{
    'ResultStream': StreamingBody()
}

Response Structure

  • (dict) –

    A structure for the output.

    • ResultStream (StreamingBody) –

      Rows returned from the GetWorkUnitResults operation as a stream of Apache Arrow v1.0 messages.

Exceptions

  • LakeFormation.Client.exceptions.InternalServiceException

  • LakeFormation.Client.exceptions.InvalidInputException

  • LakeFormation.Client.exceptions.AccessDeniedException

  • LakeFormation.Client.exceptions.ExpiredException

  • LakeFormation.Client.exceptions.ThrottledException