From ab233c1a6dc894409108d7b2372c930654b4e1f2 Mon Sep 17 00:00:00 2001 From: hemant2356 <159230458+hemant2356@users.noreply.github.com> Date: Wed, 7 Feb 2024 12:00:14 +0530 Subject: [PATCH] Create Python code select count(1),swb_table from schema where etl_batch_id =current etl_batch_id group by swb_table if count =0 remove the table from the list create groups with non zero data tables parallel bdm run for groups if run success update the parfiles with 'S' status Else update with 'F' status if status for all tables are 'S' JOB completed for the group --- Python code | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Python code diff --git a/Python code b/Python code new file mode 100644 index 0000000..01307c9 --- /dev/null +++ b/Python code @@ -0,0 +1,9 @@ +select count(1),swb_table from schema where etl_batch_id =current etl_batch_id group by swb_table +if count =0 +remove the table from the list +create groups with non zero data tables +parallel bdm run for groups +if run success update the parfiles with 'S' status +Else update with 'F' status +if status for all tables are 'S' +JOB completed for the group