How to handle fields enclosed within quotes(CSV) in importing data from S3 into DynamoDB using EMR/Hive

前端 未结 7 1105
梦毁少年i
梦毁少年i 2020-12-28 17:14

I am trying to use EMR/Hive to import data from S3 into DynamoDB. My CSV file has fields which are enclosed within double quotes and separated by comma. While creating exter

7条回答
  •  一整个雨季
    2020-12-28 18:15

    Hive now includes an OpenCSVSerde which will properly parse those quoted fields without adding additional jars or error prone and slow regex.

    ROW FORMAT SERDE 'org.apache.hadoop.hive.serde2.OpenCSVSerde'

提交回复
热议问题