What is the default delimiter for Hive tables?
10,623
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;
Author by
PriyankaB
Updated on July 16, 2022Comments
-
PriyankaB almost 2 years
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);
-
Daniel about 6 yearsWelcome to Stack Overflow, please review: stackoverflow.com/help/how-to-ask
-
-
HbnKing about 6 years@TKHN had you use Google to find out?
-
rosefun over 2 yearsWhat is the meaning of
STORED AS TEXTFILE
? Any other file format in hive table?