I am looking to pass list as a parameter to sparksql statement.
process_date = '2020-01-01'
df1 = spark.sql("""select '{0}', * from table1""".format(process_date))
This works for a string.
So df1 is created successfully.
But If I have List like this
list1 = ['a','b','c']
df2 = spark.sql("""select '{0}','{1}',* from table1""".format(process_date,list1))
This is not working for me.
joinon the list