将数据从 s3 加载到 redshift 时出现问题

时间:2021-03-26 13:00:51

标签: amazon-web-services amazon-s3 copy amazon-redshift

我有一个有 2 列的表格

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

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

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

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

0 个答案:

没有答案