{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-glue/json-schema/aws-glue-get-column-statistics-for-table-response-schema.json",
  "title": "GetColumnStatisticsForTableResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-glue-aws-glue-x-amz-target-awsglue-getcolumnstatisticsfortable-api-openapi.yml#/components/schemas/GetColumnStatisticsForTableResponse",
  "type": "object",
  "properties": {
    "ColumnStatisticsList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ColumnStatistics"
      },
      "description": "List of ColumnStatistics."
    },
    "Errors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ColumnError"
      },
      "description": "List of ColumnStatistics that failed to be retrieved."
    }
  },
  "$defs": {
    "BinaryColumnStatisticsData": {
      "type": "object",
      "properties": {
        "MaximumLength": {
          "type": "integer",
          "description": "The size of the longest bit sequence in the column."
        },
        "AverageLength": {
          "type": "number",
          "description": "The average bit sequence length in the column."
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        }
      },
      "required": [
        "MaximumLength",
        "AverageLength",
        "NumberOfNulls"
      ]
    },
    "BooleanColumnStatisticsData": {
      "type": "object",
      "properties": {
        "NumberOfTrues": {
          "type": "integer",
          "description": "The number of true values in the column."
        },
        "NumberOfFalses": {
          "type": "integer",
          "description": "The number of false values in the column."
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        }
      },
      "required": [
        "NumberOfTrues",
        "NumberOfFalses",
        "NumberOfNulls"
      ]
    },
    "ColumnError": {
      "type": "object",
      "properties": {
        "ColumnName": {
          "type": "string",
          "description": "The name of the column that failed."
        },
        "Error": {
          "$ref": "#/$defs/ErrorDetail"
        }
      }
    },
    "ColumnStatistics": {
      "type": "object",
      "properties": {
        "ColumnName": {
          "type": "string",
          "description": "Name of column which statistics belong to."
        },
        "ColumnType": {
          "type": "string",
          "description": "The data type of the column."
        },
        "AnalyzedTime": {
          "type": "string",
          "format": "date-time",
          "description": "The timestamp of when column statistics were generated."
        },
        "StatisticsData": {
          "$ref": "#/$defs/ColumnStatisticsData"
        }
      },
      "required": [
        "ColumnName",
        "ColumnType",
        "AnalyzedTime",
        "StatisticsData"
      ]
    },
    "ColumnStatisticsData": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "BOOLEAN",
            "DATE",
            "DECIMAL",
            "DOUBLE",
            "LONG",
            "STRING",
            "BINARY"
          ],
          "description": "The type of column statistics data."
        },
        "BooleanColumnStatisticsData": {
          "$ref": "#/$defs/BooleanColumnStatisticsData"
        },
        "DateColumnStatisticsData": {
          "$ref": "#/$defs/DateColumnStatisticsData"
        },
        "DecimalColumnStatisticsData": {
          "$ref": "#/$defs/DecimalColumnStatisticsData"
        },
        "DoubleColumnStatisticsData": {
          "$ref": "#/$defs/DoubleColumnStatisticsData"
        },
        "LongColumnStatisticsData": {
          "$ref": "#/$defs/LongColumnStatisticsData"
        },
        "StringColumnStatisticsData": {
          "$ref": "#/$defs/StringColumnStatisticsData"
        },
        "BinaryColumnStatisticsData": {
          "$ref": "#/$defs/BinaryColumnStatisticsData"
        }
      },
      "required": [
        "Type"
      ]
    },
    "DateColumnStatisticsData": {
      "type": "object",
      "properties": {
        "MinimumValue": {
          "type": "string",
          "format": "date-time",
          "description": "The lowest value in the column."
        },
        "MaximumValue": {
          "type": "string",
          "format": "date-time",
          "description": "The highest value in the column."
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        },
        "NumberOfDistinctValues": {
          "type": "integer",
          "description": "The number of distinct values in a column."
        }
      },
      "required": [
        "NumberOfNulls",
        "NumberOfDistinctValues"
      ]
    },
    "DecimalColumnStatisticsData": {
      "type": "object",
      "properties": {
        "MinimumValue": {
          "$ref": "#/$defs/DecimalNumber"
        },
        "MaximumValue": {
          "$ref": "#/$defs/DecimalNumber"
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        },
        "NumberOfDistinctValues": {
          "type": "integer",
          "description": "The number of distinct values in a column."
        }
      },
      "required": [
        "NumberOfNulls",
        "NumberOfDistinctValues"
      ]
    },
    "DecimalNumber": {
      "type": "object",
      "properties": {
        "UnscaledValue": {
          "type": "string",
          "format": "byte",
          "description": "The unscaled numeric value."
        },
        "Scale": {
          "type": "integer",
          "description": "The scale that determines where the decimal point falls in the unscaled value."
        }
      },
      "required": [
        "UnscaledValue",
        "Scale"
      ]
    },
    "DoubleColumnStatisticsData": {
      "type": "object",
      "properties": {
        "MinimumValue": {
          "type": "number",
          "description": "The lowest value in the column."
        },
        "MaximumValue": {
          "type": "number",
          "description": "The highest value in the column."
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        },
        "NumberOfDistinctValues": {
          "type": "integer",
          "description": "The number of distinct values in a column."
        }
      },
      "required": [
        "NumberOfNulls",
        "NumberOfDistinctValues"
      ]
    },
    "ErrorDetail": {
      "type": "object",
      "properties": {
        "ErrorCode": {
          "type": "string",
          "description": "The code associated with this error."
        },
        "ErrorMessage": {
          "type": "string",
          "description": "A message describing the error."
        }
      }
    },
    "LongColumnStatisticsData": {
      "type": "object",
      "properties": {
        "MinimumValue": {
          "type": "integer",
          "description": "The lowest value in the column."
        },
        "MaximumValue": {
          "type": "integer",
          "description": "The highest value in the column."
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        },
        "NumberOfDistinctValues": {
          "type": "integer",
          "description": "The number of distinct values in a column."
        }
      },
      "required": [
        "NumberOfNulls",
        "NumberOfDistinctValues"
      ]
    },
    "StringColumnStatisticsData": {
      "type": "object",
      "properties": {
        "MaximumLength": {
          "type": "integer",
          "description": "The size of the longest string in the column."
        },
        "AverageLength": {
          "type": "number",
          "description": "The average string length in the column."
        },
        "NumberOfNulls": {
          "type": "integer",
          "description": "The number of null values in the column."
        },
        "NumberOfDistinctValues": {
          "type": "integer",
          "description": "The number of distinct values in a column."
        }
      },
      "required": [
        "MaximumLength",
        "AverageLength",
        "NumberOfNulls",
        "NumberOfDistinctValues"
      ]
    }
  }
}