ablog

不器用で落着きのない技術者のメモ

2020-08-08から1日間の記事一覧

Redshift の UNLOAD で1ファイルにまとめて出力する

AWS

UNLOAD コマンドで PARALLEL OFF オプションをつけると1ファイルにまとめて出力することができる。 unload ('select * from stl_query') to 's3://redshift-unload/stl_query_' iam_role 'arn:aws:iam::123456789012:role/redshift-spectrum-s3-fullaccess' …