首页 > 解决方案 > 将数据从 s3 加载到 redshift 时出现问题

问题描述

我有一个有 2 列的表

create table staging.test1
(
  a   varchar(11)  not null,
  b   super
);

s3 文件是一个 json 文件,如下所示

{
  "a": "R123",
  "b": "{\\"currentPartyDetails\":\\"readyOnly\\":false}"
}

我想将它加载到 redshift 表中,在 b 列中我得到\\"了我想在加载时抑制的内容,因为超级数据类型只需要有效的 json。

标签: amazon-web-servicesamazon-s3copyamazon-redshift

解决方案


推荐阅读