I have a PySpark program in which there is a SQL query like this:
id = 'abc1'
info = sqlc.sql("SELECT * from df WHERE isn = 'id'")
This query does not work. I am returned with a blank set of values. However, if I hardcode the value, it works.
info = sqlc.sql("SELECT * from df WHERE isn = 'abc1'")
I have tried str(id) just to be sure. How can I resolve this?