What is the default delimiter for Hive tables?

安稳与你 提交于 2019-12-11 07:39:17

问题


If we don't mention any delimiter while creating a table, is there any default delimiter hive takes?

create table logs (ts bigint, line string) partitioned by (dt String, country String);


回答1:


The default delimiter '\001' if you havn't set when create a hivetable .

you can change it to others delimiter . for example

hive> CREATE TABLE IF NOT EXISTS student1
    > (sno INT,sname STRING,age INT,sex STRING)
    > ROW FORMAT DELIMITED
    > FIELDS TERMINATED BY '\t'
    > STORED AS TEXTFILE;


来源:https://stackoverflow.com/questions/48616464/what-is-the-default-delimiter-for-hive-tables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!