Skip to contents

This request can be used to poll for the statement's status. When the status.state field is SUCCEEDED it will also return the result manifest and the first chunk of the result data. When the statement is in the terminal states CANCELED, CLOSED or FAILED, it returns HTTP 200 with the state set. After at least 12 hours in terminal state, the statement is removed from the warehouse and further calls will receive an HTTP 404 response.

Usage

get_statement_execution(client, statement_id)

statementExecutionGetStatement(client, statement_id)

Arguments

client

Required. Instance of DatabricksClient()

statement_id

Required. The statement ID is returned upon successfully submitting a SQL statement, and is a required reference for all subsequent calls.

Details

NOTE This call currently might take up to 5 seconds to get the latest status and result.