Let's say I want to create a simple table with 4 columns in Hive and load some pipe-delimited data starting with pipe.
CREATE table TEST_1 (
COL1 string,
COL2 string,
COL3 string,
COL4 string
)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '|';
Raw Data:
|123|456|Dasani Bottled|5|,
|124|455|Test Bottled |7|
Table getting date like
----------------------------------
COL1 COL2 COL3 COL4
----------------------------------
123 456 Dasani Bottled
123 455 Test Bottled
----------------------------------
COL1 Getting Empty and last column not loaded. I have try to load the csv file using Hadoop put command.
Help me to resolve this issue.