I have python script which has many SQL queries. I want to
spark.sql("Select a,b from schema.table1 UNION ALL Select a,b from schema.table2 ")
I need to extract all the table names referred in the script.
I need help on how to approach this?Can I pass the script as input file and search for matching pattern or is there any other better approach?