{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-sitewise/json-schema/amazon-iot-sitewise-execute-query-response-schema.json",
  "title": "ExecuteQueryResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-sitewise-queries-api-openapi.yml#/components/schemas/ExecuteQueryResponse",
  "type": "object",
  "properties": {
    "columns": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ColumnInfo"
      },
      "description": "Represents a single column in the query results."
    },
    "rows": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Row"
      },
      "description": "Represents a single row in the query results."
    },
    "nextToken": {
      "type": "string",
      "description": "The string that specifies the next page of results."
    }
  },
  "$defs": {
    "ColumnInfo": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the column description."
        },
        "type": {
          "$ref": "#/$defs/ColumnType"
        }
      }
    },
    "ColumnType": {
      "type": "object",
      "properties": {
        "scalarType": {
          "type": "string",
          "enum": [
            "BOOLEAN",
            "INT",
            "DOUBLE",
            "TIMESTAMP",
            "STRING"
          ],
          "description": "The allowed data types that the column has as it's value."
        }
      }
    },
    "Datum": {
      "type": "object",
      "properties": {
        "scalarValue": {
          "type": "string",
          "description": "Indicates if the data point is a scalar value such as integer, string, double, or Boolean."
        },
        "arrayValue": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Datum"
          },
          "description": "Indicates if the data point is an array."
        },
        "rowValue": {
          "$ref": "#/$defs/Row"
        },
        "nullValue": {
          "type": "boolean",
          "description": "Indicates if the data point is null."
        }
      }
    },
    "Row": {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Datum"
          },
          "description": "List of data points in a single row of the result set."
        }
      },
      "required": [
        "data"
      ]
    }
  }
}