Below is the code to run spark code in thread we can run spark task on parallel below code is example to run using thread
spark dataframe pass query to run future wil