TASK1 和 TASK2 定义
CREATE OR REPLACE TASK TASK1
warehouse = 'WH'
schedule = '5 minute'
as
CALL SCHEMA.MY_STORED_PROCEDURE1('ARG1');
CREATE OR REPLACE TASK TASK2
warehouse = 'WH'
after TASK1
as
CALL SCHEMA.MY_STORED_PROCEDURE2('ARG1');
我正在尝试将 TASK1 和 TASK2 的所有权转移给角色 ROLE1
grant ownership on task TASK1 to role ROLE1;
当我运行上面的命令时,它删除了 AFTER 关键字(在 TASK1 之后)行,并且 TASK1 和 TASK2 的定义如下所示
CREATE OR REPLACE TASK TASK1
warehouse = 'WH'
schedule = '5 minute'
as
CALL SCHEMA.MY_STORED_PROCEDURE1('ARG1');
CREATE OR REPLACE TASK TASK2
warehouse = 'WH'
as
CALL SCHEMA.MY_STORED_PROCEDURE2('ARG1');
当我转移所有权时,我如何确保它也会添加依赖任务。我不想使用以下命令手动执行此操作
alter task TASK2 add after TASK1;