JUMAN4422
Databricks Partner

 

you can use for loop, it will process parallelly based on the cluster size.
Define the dlt logic in a function,

def dlt_logic(table_name):

     ........

 

then pass your table names in a list to the function.

 

table_names = ["table1", "table2", "table3"]

for table_name in table_names:

    dlt_logic(table_name)