【发布时间】:2017-02-17 12:15:20
【问题描述】:
在 ETL 期间,我们执行以下操作:
begin transaction;
drop table if exists target_tmp;
create table target_tmp like target;
insert into target_tmp select * from source_a inner join source_b on ...;
analyze table target_tmp;
drop table target;
alter table target_tmp rename to target;
commit;
SQL 命令由 AWS Data Pipeline 执行,如果这很重要的话。
但是,管道有时会失败并出现以下错误:
ERROR: table 111566 dropped by concurrent transaction
Redshift 支持可序列化的隔离。其中一个命令会破坏隔离吗?
【问题讨论】:
标签: sql amazon-web-services transactions amazon-redshift amazon-data-pipeline