gpt4 book ai didi

amazon-web-services - AWS Redshift - 在卸载到 s3 时设置零件大小

转载 作者:行者123 更新时间:2023-12-03 05:00:09 25 4
gpt4 key购买 nike

将大型结果集卸载到 s3 时,redshift 会自动将文件拆分为多个部分。有没有办法在卸载时设置每个部分的大小?

最佳答案

卸载时,可以使用maxfilesize来指示文件的最大大小。例如:

    unload ('select * from venue')
to 's3://mybucket/unload/'
iam_role 'arn:aws:iam::0123456789012:role/MyRedshiftRole'
maxfilesize 1 gb;

From here

关于amazon-web-services - AWS Redshift - 在卸载到 s3 时设置零件大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24928075/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com