Orc
1 min read
On this page
The Apache Orc format allows to read and write Orc data.
Example of Use
SQL
1 CREATE TABLE user_behavior (
2 user_id BIGINT,
3 item_id BIGINT,
4 category_id BIGINT,
5 behavior STRING,
6 ts TIMESTAMP(3),
7 dt STRING
8 ) PARTITIONED BY (dt) WITH (
9 'connector' = 'filesystem',
10 'path' = '/tmp/user_behavior',
11 'format' = 'orc'
12 )Format Option
Data Type Mapping
Orc format type mapping is compatible with Apache Hive. The following table lists the type mapping from Flink type to Orc type.
Was this helpful?