DescribeStatementResponse
¶
Source code in docs_src/capo_redshift_data/types/describe_statement_response.py
cluster_identifier
instance-attribute
¶
cluster_identifier: NotRequired[String]
The cluster identifier.
created_at
instance-attribute
¶
created_at: NotRequired[datetime]
The date and time (UTC) when the SQL statement was submitted to run.
duration
instance-attribute
¶
duration: Long
The amount of time in nanoseconds that the statement ran.
error
instance-attribute
¶
error: NotRequired[String]
The error message from the cluster if the SQL statement encountered an error while running.
execution_mode
instance-attribute
¶
execution_mode: NotRequired[ExecutionMode]
The execution mode of the batch request. TRANSACTION indicates all SQL statements are run as a single transaction. AUTO_COMMIT indicates each SQL statement is committed individually.
has_result_set
instance-attribute
¶
A value that indicates whether the statement has a result set. The result set can be empty. The value is true for an empty result set. The value is true if any substatement returns a result set.
id
instance-attribute
¶
id: UUID
The identifier of the SQL statement described. This value is a universally unique identifier (UUID) generated by Amazon Redshift Data API.
query_parameters
instance-attribute
¶
query_parameters: NotRequired[SqlParametersList]
The parameters for the SQL statement.
query_string
instance-attribute
¶
query_string: NotRequired[StatementString]
The SQL statement text.
redshift_query_id
instance-attribute
¶
redshift_query_id: Long
The identifier of the query generated by Amazon Redshift. These identifiers are also available in the query column of the STL_QUERY system view.
result_format
instance-attribute
¶
result_format: NotRequired[ResultFormatString]
The data format of the result of the SQL statement.
result_rows
instance-attribute
¶
result_rows: Long
Either the number of rows returned from the SQL statement or the number of rows affected. If result size is greater than zero, the result rows can be the number of rows affected by SQL statements such as INSERT, UPDATE, DELETE, COPY, and others. A -1 indicates the value is null.
result_size
instance-attribute
¶
result_size: Long
The size in bytes of the returned results. A -1 indicates the value is null.
secret_arn
instance-attribute
¶
secret_arn: NotRequired[SecretArn]
The name or Amazon Resource Name (ARN) of the secret that enables access to the database.
session_id
instance-attribute
¶
session_id: NotRequired[String]
The session identifier of the query.
status
instance-attribute
¶
status: NotRequired[StatusString]
The status of the SQL statement being described. Status values are defined as follows:
-
ABORTED - The query run was stopped by the user.
-
ALL - A status value that includes all query statuses. This value can be used to filter results.
-
FAILED - The query run failed.
-
FINISHED - The query has finished running.
-
PICKED - The query has been chosen to be run.
-
STARTED - The query run has started.
-
SUBMITTED - The query was submitted, but not yet processed.
sub_statements
instance-attribute
¶
sub_statements: NotRequired[SubStatementList]
The SQL statements from a multiple statement run.
updated_at
instance-attribute
¶
updated_at: NotRequired[datetime]
The date and time (UTC) that the metadata for the SQL statement was last updated. An example is the time the status last changed.
workgroup_name
instance-attribute
¶
workgroup_name: NotRequired[WorkgroupNameString]
The serverless workgroup name or Amazon Resource Name (ARN).