I have small snippet of code in pyspark.
# save data frame as temp table
df.createOrReplaceTempView("my_table")
# save data frame as csv
df.write.format("csv").save("my_csv")
Now the 1st command executes then only 2nd will execute.
Is there a way where I can trigger both these commands in parallel i.e I want both commands to execute at the same time