run_statement

Glue.Client.run_statement(**kwargs)

Executes the statement.

See also: AWS API Documentation

Request Syntax

response = client.run_statement(
    SessionId='string',
    Code='string',
    RequestOrigin='string'
)
Parameters
  • SessionId (string) --

    [REQUIRED]

    The Session Id of the statement to be run.

  • Code (string) --

    [REQUIRED]

    The statement code to be run.

  • RequestOrigin (string) -- The origin of the request.
Return type

dict

Returns

Response Syntax

{
    'Id': 123
}

Response Structure

  • (dict) --

    • Id (integer) --

      Returns the Id of the statement that was run.

Exceptions

  • Glue.Client.exceptions.EntityNotFoundException
  • Glue.Client.exceptions.AccessDeniedException
  • Glue.Client.exceptions.InternalServiceException
  • Glue.Client.exceptions.OperationTimeoutException
  • Glue.Client.exceptions.InvalidInputException
  • Glue.Client.exceptions.ValidationException
  • Glue.Client.exceptions.ResourceNumberLimitExceededException
  • Glue.Client.exceptions.IllegalSessionStateException