我在下面创建了任务,但无法让它执行所有行。看起来它只是从 productweekly_upload 第一次删除然后完成。有人有想法么?这是我第一次使用任务
CREATE OR REPLACE TASK WeeklySymphony_Load
WAREHOUSE = UPLOADWAREHOUSE
SCHEDULE = 'USING CRON 10 8 * * MON America/New_York'
as
--run every monday at 8:10 am
delete from Productweekly_Upload;
delete from Factsweekly_Upload;
delete from Productweekly;
delete from Factsweekly;
copy into ProductWeekly_Upload
from @symphony_s3_stage/prasco_phast_it_prdct_wk_;
copy into FactsWeekly_Upload
from @symphony_s3_stage/prasco_phast_it_wk_;
insert into ProductWeekly
select * from ProductWeekly_Upload;
insert into FactsWeekly
select * from FactsWeekly_Upload;