row_format
Row format, which specifies the row serialization/deserialization method for a Hive table.
Syntax
ROW FORMAT DELIMITED
[FIELDS TERMINATED BY separator]
[COLLECTION ITEMS TERMINATED BY separator]
[MAP KEYS TERMINATED BY separator] [LINES TERMINATED BY separator]
[NULL DEFINED AS separator]
| SERDE serde_name [WITH SERDEPROPERTIES (property_name=property_value, property_name=property_value, ...)]
Description
- separator refers to the delimiter or substitute character in the syntax. Only supports the CHAR type.
- FIELDS TERMINATED BY specifies the field-level delimiter in the table. Only supports the CHAR type.
- COLLECTION ITEMS TERMINATED BY specifies the collection-level delimiter. Only supports the CHAR type.
- MAP KEYS TERMINATED BY is only used to specify the delimiter between key and value in MAP types. Only supports the CHAR type.
- LINES TERMINATED BY specifies the delimiter between rows. Currently only supports \n.
- The NULL DEFINED AS clause can be used to specify the NULL format.
- The SERDE serde_name [WITH SERDEPROPERTIES (property_name=property_value, property_name=property_value, ...)] You can use the following statement to convert the NULL value to an empty string.
ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe' with serdeproperties('serialization.null.format' = '')
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot