【问题标题】:Redshift: create external table returns 0 rowsRedshift:创建外部表返回 0 行
【发布时间】:2018-02-24 03:04:33
【问题描述】:

我有一个 文本文件 test.txt 位于 s3://myBucket/,请参阅下面的示例,我想使用它在 Redshift 中创建一个外部表。
当我从表中选择时,它返回 0 行。

1,One
2,Two
3,Three

create external table spectrum_schema.test(
Id integer,
Name varchar(255))
row format delimited
fields terminated by ','
stored as textfile
location 's3://myBucket/';

select * from spectrum_schema.test //returns 0 rows

有什么建议可以解决这个问题吗?

【问题讨论】:

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


    【解决方案1】:

    我通过将文件移动到 s3://myBucket/test 解决了这个问题

    【讨论】:

      猜你喜欢
      • 2022-01-22
      • 1970-01-01
      • 1970-01-01
      • 2021-01-12
      • 2021-06-26
      • 1970-01-01
      • 2021-11-17
      • 2019-08-10
      • 2021-03-01
      相关资源
      最近更新 更多