{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/informatica/json-schema/informatica-compare-columns-result-schema.json",
  "title": "CompareColumnsResult",
  "description": "The results are in matrix form. Each column represents a profiled column or rule.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/informatica-data-profiling-api-openapi.yml#/components/schemas/CompareColumnsResult",
  "type": "object",
  "properties": {
    "columnNames": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "columnIds": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "nullPercent": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "nullCount": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "distinctPercent": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "distinctCount": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "nonDistinctPercent": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "nonDistinctCount": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "noOfPatterns": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "topPatternPercent": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "minVal": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "maxVal": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "minLen": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "maxLen": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "blankPercent": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "blankCount": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "zeroPercent": {
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    },
    "zeroCount": {
      "type": "array",
      "items": {
        "type": "integer",
        "format": "int64"
      }
    },
    "documentedDataType": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dataTypes": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/DataTypeCompareSummary"
        }
      }
    },
    "patterns": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/PatternCompareSummary"
        }
      }
    }
  },
  "$defs": {
    "DataTypeCompareSummary": {
      "type": "object",
      "properties": {
        "columnId": {
          "description": "Unique identifier for the column",
          "type": "string"
        },
        "frequency": {
          "description": "Measure of frequency of the inferred datatype",
          "type": "integer",
          "format": "int64"
        },
        "percent": {
          "description": "Percentage of total rows which match to the datatype",
          "type": "number",
          "format": "float"
        },
        "isConflictingDataType": {
          "description": "Does the inferred datatype match the documented datatype of the column",
          "type": "boolean"
        }
      }
    },
    "PatternCompareSummary": {
      "type": "object",
      "properties": {
        "columnId": {
          "description": "Unique identifier for the column or rule",
          "type": "string"
        },
        "frequency": {
          "description": "Count of the rows adhering to the specified pattern for the column",
          "type": "integer",
          "format": "int64"
        },
        "percent": {
          "description": "Percentage of total rows adhering to the specified pattern for the column",
          "type": "number",
          "format": "float"
        }
      }
    }
  }
}