Skip to main content

Description

Apache ORC is a columnar storage format widely used in the Hadoop ecosystem.

Data types matching

The table below compares supported ORC data types and their corresponding ClickHouse data types in INSERT and SELECT queries.
  • Other types are not supported.
  • Arrays can be nested and can have a value of the Nullable type as an argument. Tuple and Map types also can be nested.
  • The data types of ClickHouse table columns do not have to match the corresponding ORC data fields. When inserting data, ClickHouse interprets data types according to the table above and then casts the data to the data type set for the ClickHouse table column.

Example usage

Inserting data

Using an ORC file with the following data, named as football.orc:
Insert the data:

Reading data

Read data using the ORC format:
ORC is a binary format that does not display in a human-readable form on the terminal. Use the INTO OUTFILE to output ORC files.

Format settings

To exchange data with Hadoop, you can use HDFS table engine.
Last modified on July 2, 2026