【发布时间】:2017-11-30 18:32:18
【问题描述】:
我已经在 SO 和官方文档 here 上查看过类似的问题。
我想将此查询卸载到 s3
SELECT column_name, data_type
FROM information_schema.columns
WHERE table_name = 'table_temp'
ORDER BY ordinal_position;
与
UNLOAD ('SELECT column_name
FROM information_schema.columns
WHERE table_name = 'table_temp'
ORDER BY ordinal_position')
to 's3://bucket/folder/'
CREDENTIALS 'aws_access_key_id=KEY;aws_secret_access_key=SECRET'
DELIMITER AS ',';
尽管我尝试了几种方法来逃避单引号 \,\\,$," 似乎我无法实现它。有什么想法吗?
【问题讨论】: