{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "SubStatementData",
  "type": "object",
  "properties": {
    "Id": {
      "type": "string",
      "description": "The identifier of the sub-statement"
    },
    "Status": {
      "type": "string",
      "description": "The status of the sub-statement"
    },
    "CreatedAt": {
      "type": "string",
      "description": "The date and time the sub-statement was created"
    },
    "UpdatedAt": {
      "type": "string",
      "description": "The date and time the sub-statement was last updated"
    },
    "Duration": {
      "type": "integer",
      "description": "The time in nanoseconds the sub-statement ran"
    },
    "QueryString": {
      "type": "string",
      "description": "The SQL statement text"
    },
    "RedshiftQueryId": {
      "type": "integer",
      "description": "The Redshift query identifier"
    },
    "ResultRows": {
      "type": "integer",
      "description": "Total number of rows in the result set"
    },
    "ResultSize": {
      "type": "integer",
      "description": "The size of the result set in bytes"
    },
    "HasResultSet": {
      "type": "boolean",
      "description": "Whether the sub-statement has a result set"
    },
    "Error": {
      "type": "string",
      "description": "The error message if the sub-statement failed"
    }
  }
}