Support Questions

Find answers, ask questions, and share your expertise

Hive - Special characters from csv file

avatar
New Contributor

Hi All,

 

I am reading a csv file with special characters

I have tried the option but the special characters still show up in hive as ? in a diamond shape.

 

CREATE EXTERNAL TABLE

)

.......

)

ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES
(
'quoteChar'='"',
'separatorChar'=',',
'serialization.encoding'='windows-1252'
)
STORED AS TEXTFILE
LOCATION '..................';
TBLPROPERTIES('serialization.encoding'='windows-1252');

 

Venk123_1-1632811054994.png

 

 

In csv file:

Venk123_0-1632811037456.png

Not sure what else to do

Appreciate your help!

1 REPLY 1

avatar
Guru

@Venk123 I think you are hitting https://issues.apache.org/jira/browse/HIVE-3363

 

I would request to raise case to get it verified and if verified you would receive a patch.