我有一个位于s3:// myBucket /的文本文件test.txt,请参阅下面的示例,我想在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
有什么建议我可以解决这个问题吗?
我通过将文件移动到s3:// myBucket / test来修复此问题