【发布时间】:2021-04-06 06:15:30
【问题描述】:
我正在使用 CTAS 命令,我想知道是否有办法在 S3 中设置文件中的记录数。我现在所要做的就是在此链接中设置大小:
https://aws.amazon.com/premiumsupport/knowledge-center/set-file-number-size-ctas-athena/
但是,我不会事先知道尺寸。
我将使用这个命令
CREATE TABLE "historic_climate_gz_20_files"
WITH (
external_location = 's3://awsexamplebucket/historic_climate_gz_20_files/',
format = 'TEXTFILE',
bucket_count=20,
bucketed_by = ARRAY['yearmonthday']
) as
select * from historic_climate_gz
我没有看到任何设置记录数的选项。
我该怎么做?
提前致谢
【问题讨论】:
标签: sql hive amazon-athena presto bucket