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 inINSERT and SELECT queries.
- Other types are not supported.
- Arrays can be nested and can have a value of the
Nullabletype as an argument.TupleandMaptypes 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 asfootball.orc:
Reading data
Read data using theORC format:
Format settings
To exchange data with Hadoop, you can use HDFS table engine.