Apache ORC · JSON Structure

Apache Orc Column Type Structure

ColumnType schema from Apache ORC

Type: object Properties: 4
Big DataColumnar StorageCompressionFile FormatHadoopApacheOpen Source

ColumnType is a JSON Structure definition published by Apache ORC, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

name type nullable children

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-orc/refs/heads/main/json-structure/apache-orc-column-type-structure.json",
  "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"
      }
    }
  },
  "name": "ColumnType"
}