https://github.com/apache/dolphinscheduler/pull/12826 for this pr
@ -119,3 +119,4 @@ d//
delimiter ;
select uc_dolphin_T_t_ds_task_instance_R_test_flag();
DROP FUNCTION uc_dolphin_T_t_ds_task_instance_R_test_flag();
create index idx_task_instance_process_instance_flag on t_ds_task_instance (process_instance_id, flag);