Member since
09-27-2021
2
Posts
0
Kudos Received
0
Solutions
09-27-2021
11:39 PM
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'); In csv file: Not sure what else to do Appreciate your help!
... View more
Labels:
- Labels:
-
Apache Hive
09-27-2021
09:58 PM
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'); Not sure what else to do
... View more