Amazon Redshift · Schema

DescribeStatementResponse

AnalyticsBig DataCloudData LakeData WarehouseETLMachine LearningServerlessSQL

Properties

Name Type Description
Id string The identifier of the SQL statement
Status string The status of the SQL statement
CreatedAt string The date and time the statement was created
UpdatedAt string The date and time the statement was last updated
Duration integer The time in nanoseconds the statement ran
QueryString string The SQL statement that was executed
QueryParameters array The parameters for the SQL statement
Database string The name of the database
DbUser string The database user
ClusterIdentifier string The cluster identifier
WorkgroupName string The serverless workgroup name
SecretArn string The secret ARN
RedshiftPid integer The process identifier from the Redshift cluster
RedshiftQueryId integer The Redshift query identifier
ResultRows integer Total number of rows in the result set (FINISHED only)
ResultSize integer The size of the result set in bytes
HasResultSet boolean Whether the statement has a result set
Error string The error message if the statement failed
SubStatements array List of sub-statements for a batch execution. Only present for BatchExecuteStatement calls.
View JSON Schema on GitHub

JSON Schema

amazon-redshift-data-describe-statement-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "DescribeStatementResponse",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The identifier of the SQL statement"
    },
    "Status": {
      "type": "string",
      "description": "The status of the SQL statement"
    },
    "CreatedAt": {
      "type": "string",
      "description": "The date and time the statement was created"
    },
    "UpdatedAt": {
      "type": "string",
      "description": "The date and time the statement was last updated"
    },
    "Duration": {
      "type": "integer",
      "description": "The time in nanoseconds the statement ran"
    },
    "QueryString": {
      "type": "string",
      "description": "The SQL statement that was executed"
    },
    "QueryParameters": {
      "type": "array",
      "description": "The parameters for the SQL statement"
    },
    "Database": {
      "type": "string",
      "description": "The name of the database"
    },
    "DbUser": {
      "type": "string",
      "description": "The database user"
    },
    "ClusterIdentifier": {
      "type": "string",
      "description": "The cluster identifier"
    },
    "WorkgroupName": {
      "type": "string",
      "description": "The serverless workgroup name"
    },
    "SecretArn": {
      "type": "string",
      "description": "The secret ARN"
    },
    "RedshiftPid": {
      "type": "integer",
      "description": "The process identifier from the Redshift cluster"
    },
    "RedshiftQueryId": {
      "type": "integer",
      "description": "The Redshift query identifier"
    },
    "ResultRows": {
      "type": "integer",
      "description": "Total number of rows in the result set (FINISHED only)"
    },
    "ResultSize": {
      "type": "integer",
      "description": "The size of the result set in bytes"
    },
    "HasResultSet": {
      "type": "boolean",
      "description": "Whether the statement has a result set"
    },
    "Error": {
      "type": "string",
      "description": "The error message if the statement failed"
    },
    "SubStatements": {
      "type": "array",
      "description": "List of sub-statements for a batch execution. Only present for BatchExecuteStatement calls."
    }
  }
}