数据文件中的特殊“”-Hive外部表

时间:2020-08-25 19:06:00

标签: hive hdfs

下面是示例提要,我正在尝试使用HDFS中的外部表进行访问。 4列数据:

"5f367c99e4b0799af79a2b89","The Washingtons: George and Martha, "Join'd by Friendship, Crown'd by Love"",""

对于第2列,数据用双引号引起来:

The Washingtons: George and Martha, "Join'd by Friendship, Crown'd by Love"

我使用了具有以下属性的CSV解析器:

ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'
WITH SERDEPROPERTIES (
  'separatorChar' = ',',
  'quoteChar' = '\"'
)

但是问题没有解决。 This is a link我指的是。是否可以在外部表中使用替代方法来解决此问题?

0 个答案:

没有答案