hive字段分隔符和数组分隔符

hive默认字段分隔符为 " \001",常用。
数组分隔符常用 " \002"。
示例:

CREATE TABLE employees (
    name STRING,
    salary FLOAT,
    subordinates ARRAY,
    deductions MAP,
    address STRUCT
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\001'
COLLECTION ITEMS TERMINATED BY '\002'
MAP KEYS TERMINATED BY '\003'
LINES TERMINATED BY '\n'
STORED AS TEXTFILE;

你可能感兴趣的:(hive字段分隔符和数组分隔符)