【问题标题】:Skip columns while copying data into redshift from S3 using copy command使用复制命令将数据从 S3 复制到红移时跳过列
【发布时间】:2016-06-08 20:12:43
【问题描述】:

我在 S3 中有一个包含 100 个属性/功能的 CSV 表,我不想在导入数据之前在 RedShift 中创建包含所有这些属性的表。在将数据从 S3 复制到 Redshift 时,是否只选择我需要的列?

【问题讨论】:

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


【解决方案1】:

您无法仅使用复制命令来实现上述目标,而使用 python 脚本则可以。请通过这个

Read specific columns from a csv file with csv module?

【讨论】:

    【解决方案2】:

    在 aws 论坛中列出了几个解决此问题的选项,看看 https://forums.aws.amazon.com/message.jspa?messageID=432590 是否对您有用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-30
      • 1970-01-01
      • 2013-05-31
      • 1970-01-01
      • 2016-12-24
      • 1970-01-01
      相关资源
      最近更新 更多