Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Duplicate
-
0.3.0
-
None
-
None
Description
No matter what the table format, INSERT OVERWRITE LOCAL DIRECTORY will always use ctrl-A delimiters ('\001' ).
INSERT OVERWRITE LOCAL DIRECTORY '/mnt/daily_timelines' SELECT * FROM daily_timelines;
where daily_timelines is defined as tab delimited
CREATE TABLE daily_timelines (
page_id BIGINT,
dates STRING,
pageviews STRING,
total_pageviews BIGINT)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\t'
STORED AS TEXTFILE;
This page also indicates Hive uses a fixed delimiter, and should be updated: