Apache ORC · Schema

ColumnType

ColumnType schema from Apache ORC

Big DataColumnar StorageCompressionFile FormatHadoopApacheOpen-Source

Properties

Name Type Description
name string Column name
type string ORC type
nullable boolean
children array
View JSON Schema on GitHub

JSON Schema

apache-orc-column-type-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-orc/refs/heads/main/json-schema/apache-orc-column-type-schema.json",
  "title": "ColumnType",
  "description": "ColumnType schema from Apache ORC",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Column name",
      "example": "customer_id"
    },
    "type": {
      "type": "string",
      "description": "ORC type",
      "example": "int",
      "enum": [
        "boolean",
        "tinyint",
        "smallint",
        "int",
        "bigint",
        "float",
        "double",
        "string",
        "binary",
        "timestamp",
        "date",
        "decimal",
        "varchar",
        "char",
        "list",
        "map",
        "struct",
        "union"
      ]
    },
    "nullable": {
      "type": "boolean",
      "example": true
    },
    "children": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/ColumnType"
      }
    }
  }
}